Display As Box switcher for One Hotkey

Hi, Need a script to switch for a one hotkey (F3 for example) display object as BOX.

some experiments:

( 
	for obj in selection do
	(
		if (obj.boxmode = on) != (obj.boxmode = off) 
		then (obj.boxmode = off) 
		else (obj.boxmode = on) 
	)
 
) 

Thanks

Comments

Comment viewing options

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

.

This will toggel box mode per objects. If for one object the current state of the boxMode is On the script will turn it Off and vice versa

macroscript ToggleBoxMode
category:"miauu"
tooltip:"Box mode On/Off"
buttonText:"Box mode On/Off"
(
	for o in selection do
	(
		o.boxmode = not o.boxmode
	)
)

This will turn all selected objects to BoxMode On.

macroscript BoxModeOn
category:"miauu"
tooltip:"Box mode ON"
buttonText:"Box mode ON"
(
	for o in selection do
	(
		o.boxmode = true
	)
)

This will turn all selected objects to BoxMode Off.

macroscript BoxModeOn
category:"miauu"
tooltip:"Box mode OFF"
buttonText:"Box mode OFF"
(
	for o in selection do
	(
		o.boxmode = false
	)
)
Torvisart's picture

Thanks for your reply

Thanks a lot, works good, great solution.

Comment viewing options

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