Always first unregister the function. Don't forget that. You will find more info about this system in the maxscripthelpfile when searching on callback viewport.
Hi, unfortunately there is not a general event callback for "Show Standard Map in Viewport" assumed you're talking about that.
You can anyhow catch it using "Node Event System" available in 3ds Max 2009+ and register the "materialOtherEvent". It is fired on every show map switch. Keep in mind it could be fired for other material editor events too.
"registerRedrawViewsCallback" is used coupled with graphic window drawing functions, and is not meant to be an event detection system. See "Viewport Redraw Callback Mechanism" in the MaxScript reference.
Replies
Always first unregister the function. Don't forget that. You will find more info about this system in the maxscripthelpfile when searching on callback viewport.
You can anyhow catch it using "Node Event System" available in 3ds Max 2009+ and register the "materialOtherEvent". It is fired on every show map switch. Keep in mind it could be fired for other material editor events too.
"registerRedrawViewsCallback" is used coupled with graphic window drawing functions, and is not meant to be an event detection system. See "Viewport Redraw Callback Mechanism" in the MaxScript reference.
Thanks