Notifications
Clear all

[Closed] accessing Layer.visibility property

in the maxscript reference there is a property .visibility but it doesnt seem to work… I can cycle through each object and play with the visibility but I am wondering why in the first place the layer.visibility property doesnt work? I am surely doing something wrong or setting up wrong controllers!.

4 Replies

it should work fine, but you have to set the rendering properties of the objects in that layer to use ‘by layer’ as well.

General Node Properties[left]<node>.renderByLayer Boolean default: true
[/left]
[left]When true, Rendering will be controlled by the Layer.
[/left]

thanks ze… I will try this out…

little problem I have run into!!! The visibility wont update on all objects when I am looking at only a Shaded View in viewport i.e. without wireframes… But if I have wireframe + shaded it works fine…

How can I fix that?

try adding a viewport redraw, perhaps