design-automation / mobius-parametric-modeller

Möbius for parametric modelling.
https://design-automation.github.io/mobius-parametric-modeller/
MIT License
10 stars 6 forks source link

setting viewer settings from procedure #618

Closed phtj closed 4 years ago

phtj commented 4 years ago

It should be possible to set the viewer settings from the procedure For example, the position of the directional light

This can be achieved by setting model attributes

In the setting, each section (divide by the horizontal line) should have a name For example "Directional Light"

When you hover over the names in the Settings window, you see the name that you can use in your code, e.g. directional_light

This is the name of a dictionary, so you can then create a model attribute that overrides these settings, e.g. like this

directional_light = {"azimuth": 123,"altitude": 234}