Notifications
Clear all
[Closed] Toggle BOX Mode / See though Button
May 17, 2008 6:36 am
Is there a easy way to set the BOX MODE and SEE THOUGH object properties?
I would like to make it into a simple button + quad menu item that will turn the selected objects into box or see though mode?
If someone could help me out i would appreciate it.
1 Reply
May 17, 2008 6:36 am
the macro recorder is (usually) your friend; it reported the properties .xray and .boxMode as the ones you’ll want to access…
-- set see-through on selected objects ON:
for o in (getCurrentSelection()) do ( o.xray = true )
-- OFF:
for o in (getCurrentSelection()) do ( o.xray = false )
-- Toggle:
for o in (getCurrentSelection()) do ( o.xray = not o.xray )
Code for box mode is suspiciously similar