ScriptSpot

Forum topic · General Scripting

turn object from same layer to box (boxmode)

By titane357 · 2012-11-21

Description

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

Set displayByLayer to True

Anubis · 2012-11-23

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