Closed phtj closed 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
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}
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}