Button to Share in scene

It would be amazing if you could insert a button to Share the scene just rite here :arrow_down:

1 Like

You can add custom menu buttons using body-end.html like this one. The button icon needs to be hosted on an external server.

For example: 3D scene (I didn’t find a Facebook icon that matches the viewer style).

2 Likes

Thanks @jan, I don’t know how to use code or script so I don’t know what to do with body end htlm Line that you mention, Could you guide me or tell me where I can find how to use it?

You need to place this file in your scene directory. You will need to customize at least two things in the code:

https://cdnjs.cloudflare.com/ajax/libs/webicons/2.0.0/webicons/webicon-facebook.png is an URL of the icon added to the menu.

Last part of https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdemo.shapespark.com%2Fsofa-facebook-share is an URL that is shared on Facebook, so you will need to change it to your scene URL (%2F needs to be used instead of /, %3A instead of :)

Thanks @jan, I will try and share the resulta! :wink:

Bringing a discussion with @jorgearq from another thread here:

What if we put an invisible anchor in front of these buttons and in the HTLM extension write the corresponding scrip?.
Could we do that?

Could you use a visible anchor with a Facebook icon (it is included in the icons set)?
If yes, you could use Open URL extension with a URL like this:

https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdemo.shapespark.com%2Fsofa-facebook-share'

ok @jan It seems fine to me, but I don’t want to leave the scene, how can I make a popup window appear?
https://tinyurl.com/Stand001

To open Facebook pop-up you would need to use their script (Share Dialog - Sharing - Documentation - Meta for Developers), but HTML label won’t execute script code.

Hello @jan are these features only available in the “PLUS SUBSCRIPTION” plan?

You can add custom buttons like this !

2 Likes

Hi @Naushad_Alam
Can you please explain how you managed to add these custom icons.
I have zero knowledge about coding. I have tried using the “ body end HTML” stuff as well but failed.
If you can give a step by step description or a video tutorial link or something, that would be really helpful.

Thanks

Hi, I am so sorry @vteriors_studio right now i didn’t have time to make any vedio tutorials or step by step process(busy these days with freelance and office work). I will try to make tutorials for this if I get enough free time. As you are new to code you can start with inspecting your button in browser and try there.
Thanks for your interest and best of luck for your future project.

2 Likes