[Closed] Visibility track
Anybody know if Can I add a controller in the visibility property?
I just can it manually in track view (Tracks>Visibility Track>Add)
I need make this for a script way in many objects.
From Maxscript Reference > General Node Properties:
<node>.visibility Boolean default: true – animatable
This is a boolean property (unlike its value as a signed float in the 3ds Max Track View) – true or on denotes visible, false or off invisible. Animate this property to control an node’s visibility at render-time,
By default, there is no controller assigned to the visibility track. Accessing the .controller property of the visibility track will throw an error. In order to be able to add keys and manipulate them, there must be a controller assigned. Animating the property as shown above will force 3ds Max to assign a controller automatically. You can also assign a controller manually to the .visibility property:
for example:
–assigns a controller:
$foo.visibility = bezier_float()
–set the current value to semi-visible:
$foo.visibility.controller.value = 0.5
–animate the value to 0 on frame 100
animate on at time 100 $foo.visibility.controller.value = 0.0
The controller for this property is stored in the 1st subAnim of the node. You can also access this controller (if existing) as:
<node>[1].controller – the visibility controller
You can also get a node’s visibility controller using the getVisController() method.
-Eric