macro for Shade Selected Objects Toggle?

is there any macro for Shade Selected Toggle?

Comments

Comment viewing options

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

You can check WireFrame mod

You can check WireFrame mod with:
viewport.isWire()
But I not found a way to see the state of Shade Selected Only.

my recent MAXScripts RSS (archive here)

harumscarum's picture

thank you Anubis

so i put simple action on toolbar as button which enable wireframe mode and shade selected only.

(
actionMan.executeAction 0 "40212"
actionMan.executeAction 0 "272"
)

but how is it possible to make button pressed when WIREFRAME + SHADE SELECTED ONLY active. i know about on IsChecked return but how it works with toggle?

Anubis's picture

not sure for macro

not sure for macro but...
actionMan.executeAction 0 "40212"  -- Views: Shade Selected Toggle
...this i get from macroRecorder in Max2009. it might by different int action in your Max version, so just get it from your macroRecorder.

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.