Get Visibility Track

Hi,

I'm using

$.controller
$.modifiers

to get the object's controllers and modifiers.

But, unfortunately it doesn't show me the visibility track I added to my object.

Does the visibility track belong to another group than controllers or modifiers?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
barigazy's picture

Node visibility

--Turn on/off node visibility 
$.visibility = on --true
$.visibility = off --false
--To toggle visibility try this
$.visibility = not $.visibility --toggle visibility
$[1].controller -- the visibility controller

Example from maxscript help (topic "General Node Properties")

--assigns a controller:
$.visibility = bezier_float() 
--set the current value to semi-visible:
$.visibility.controller.value = 0.5
--animate the value to 0 on frame 100
animate on at time 100 $.visibility.controller.value = 0.0

barigazy

Ewok's picture

Hi barigazy, thank you very

Hi barigazy,

thank you very much.

$[1].controller
will do it.

barigazy's picture

Ok. But be careful with

Ok. But be careful with visibility controller.
May happen that 3dsmax also disappears. ;)

barigazy

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.