Sunlight with the AppBuilder

Hello,

I would like to integrate sunlight in the same way as shown in this example: Sunlight Example.

My struggle is that this example was created using the ViewerAPI, but my Grasshopper script is intended to work with the AppBuilder. Could you provide some suggestions on how I could achieve this effect in the AppBuilder? Additionally, how would I embed it on another website? Would it still work with an iframe and some modifications, or is the solution more complex?

Another option for me could be to create different light scenes when setting up my definition on ShapeDiver. In that case, my question would be whether it’s possible to add a dropdown menu to one of the tabs in the app to switch between the different light scenes.

Would this second option be easier to implement than the variable sunlight?

Thanks in advance for any help!

Kind regards,
Finn

The App Builder code is open source, making it possible for you to import it and integrate the sun simulation case in your App. However, depending on your experience as a software developer, this might prove to be a more complex task than the sandbox example you shared. Our team could of course provide assistance if you want to go this route.

The second route you propose is interesting, but not yet possible at the moment, or possible in the same way that I mentioned above (adapt the App Builder code to add the functionality). However, I created a backlog task to add a widget that allows to switch between different light scenes in the App Builder. While not the highest of our priorities, this is something that makes sense to add in the future.