Hi, I just created 4 Scene and named them as Scene 1 to 4. And also created 4 cube model as group. Each one of the cube has a sectionplane to hide or show them. I tried to use the command
Is there a way to select Scene by its name and modify the section plane as Active or not? I wish there would be a way to change sectionPlane value to be active or nil in different Scene.
Before the GUI called them “Scenes” they were first known as “Pages”.
They got renamed “Scenes” in the GUI, but still retained the old classname in the API.
Because you grepped the model’sentities collection which does not have any section planes.
So the empty array was the correct result from the grep call.
To get a hash of the scene pages from each cube group …
When you get an error, you should always take a look at the error message:
SyntaxError: (eval):2: syntax error, unexpected tINTEGER, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END
model.pages.map(&:001)
^
which points to the token &:001 which has incorrect syntax. Then you look up the documentation of map and find that its normal (not shortened) usage is like: