Almir
01-14-2009, 07:37 AM
Hey guys,
I put all of my vray proxy stuff on a seperate layer, most of them are grouped.
I set the layer display to bounding box to save performance, and back to shaded to make adjustments.
Now, I want to write a script that:
-Determine the layer of the selected object(s).
-Set that Layer display mode to box.
foo = $.layer
foo.boxmode = true
//Or
foo.display = #boundingbox (not sure about this syntax)
The problem is most of proxy stuff are grouped, so when I select a group and try to anything on the $ max simply returns an error, listing $ gives me back $selection instead of the usual node properties $Editable_Meshetcetc, this the first time I deal with groups with maxscript and for some reason they are not treated as nodes.
any help guys?
thanks.
~sion
I put all of my vray proxy stuff on a seperate layer, most of them are grouped.
I set the layer display to bounding box to save performance, and back to shaded to make adjustments.
Now, I want to write a script that:
-Determine the layer of the selected object(s).
-Set that Layer display mode to box.
foo = $.layer
foo.boxmode = true
//Or
foo.display = #boundingbox (not sure about this syntax)
The problem is most of proxy stuff are grouped, so when I select a group and try to anything on the $ max simply returns an error, listing $ gives me back $selection instead of the usual node properties $Editable_Meshetcetc, this the first time I deal with groups with maxscript and for some reason they are not treated as nodes.
any help guys?
thanks.
~sion
