turn object from same layer to box (boxmode)

Hello

can anybody tell me how to make it work ?
"for obj in selection do obj.layer.Boxmode = true" don't work
if somebody can help, i need it to work with lot of trees
(I select one object of a layer, run the script all objects of the same layer have "moxmode" in object property)
Thanks

Comments

Comment viewing options

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

Set displayByLayer to True

if selection.count == 1 do
(
	selection[1].layer.boxmode = true
	if selection[1].layer.nodes &theNodes do
		theNodes.displayByLayer = true
)

my recent MAXScripts RSS (archive here)

Comment viewing options

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