Thursday, March 19, 2026

openspace command convention

Quick note to self - when we want to use the built-in fadeIn or fadeOut commands, we can't use the name of the object as seen in the info tab - like Scene.Moon here,


We will get errors like
Error when calling script 'openspace.fadeIn': Could not find property 'Scene.Moon.Enabled'

Checking the script log, we need to append .Renderable to that name, like

openspace.fadeOut("Scene.Moon.Renderable", 5)

Edit - Note: All of the above were with respect to the 0.21.x version. In version 0.22, things may change - for eg this commit.

No comments:

Post a Comment