ScriptSpot

Forum topic · General Scripting

macro for Shade Selected Objects Toggle?

By harumscarum · 2011-10-02

Description

is there any macro for Shade Selected Toggle?

Comments (3)

Anubis · 2011-10-03

You can check WireFrame mod with:

viewport.isWire()

But I not found a way to see the state of Shade Selected Only.

thank you Anubis

harumscarum · 2011-10-03

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 · 2011-10-02

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.