ScriptSpot

Forum topic · General Scripting

Get Visibility Track

By Ewok · 2012-04-23

Description

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 (3)

Node visibility

barigazy · 2012-04-23

--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

Ewok · 2012-04-24

Hi barigazy,

thank you very much.

$[1].controller

will do it.

barigazy · 2012-04-24

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