.hidden property and groups (scripting)

 From:  Michael Gibson
11120.5 In reply to 11120.4 
Hi Peer,

re:
> Showing the top-level parent group causes everything in that group to get shown, which is not what I want.

Right, but that's not the complete operation, after everything is shown you can then set what you want hidden to obj.hidden = true; without needing to do any climbing up group parent trees.


> Two things that caused some trouble are:
>
> Setting hidden = true on a non-group object fails to set hidden = true on sub-objects
> .getSubObjects() operates recursively rather than just giving immediate children

There isn't really any way to change this behavior without potentially breaking already existing scripts.

But if you want to get only the immediate children of a group, there is an .objects property on a group that will give that.

- Michael