Edit Render Region-button
Currently, there is an Edit Render Region button available that can be added to the toolbar.
I made a custom one like this:
on execute do if keyboard.shiftpressed then ( macros.run "Haider" "RenderRegion_GUI_02" ) else ( actionMan.executeAction 0 "59241" -- Edit Render Region )
I need your help to make this script behave so that it is pressed when the Edit Render Region mode is on, and unpressed when it is off, like the original button.
Also, I am not sure if actionMan.executeAction 0 "59241"
is the proper code. I got it from the listener.
Comments
--
Thanks Miauu, this did the trick.
Here is the result
The next issue I am struggling with is to set
setRenderType #view
ifEditRenderRegion.IsEditable
. But it ends up that I need to click twice to get the effect I need.Kind regards
Haider
www.haider.se
.
Open MaxScript Help file and search for this:
Interface: EditRenderRegion
Then, to make the toolbar button to stay pressed search for this:
on isChecked do
Tools and Scripts for Autodesk 3dsMax