Given a certain object I know the name of, I would like to hide it in all scenes but a certain one. This .each loop however hides all entities in all scenes for some reason. I can’t find what is wrong with it.
I know:
The name of the one scene I want the group to be visible on = target_scene
The name of the group I want to hide on all other scenes = target
Sketchup.active_model.pages.each{|op|
if(op.name != "target_scene")
target.hidden = true
op.update(16)
end
}