[Closed] Unusual Layer Behaviour
Here is an example of something I didn’t expect…
Make a new layer with a $Teapot001 and $Sphere001 in it. Hide the Sphere object and then hide the layer as well.
Now type $Sphere001.ishidden = false
and the Sphere will become unhidden but also at the same time your layer will become unhidden. Helpful in some scenarios, but annoying in the one I was using it in last week.
If you just want to unhide a single object, use $.isNodeHidden.
as per the maxscript docs “General Node Properties” page. isHidden covers the following criteria:
[left]A node is hidden in the viewport if:
[/left]
[left]1. The node’s hidden flag is set,
[/left]
[left]2. The node’s layer hidden flag is set,
[/left]
[left]3. The node’s category is hidden via Hide By Category, or
[/left]
[left]4. The node is frozen and Hide Frozen Objects is enabled
[/left]
Cool thanks Rotu, that’s good info! Didn’t know that property! #alwayslearning