why there is no switching between move and scale modes in the example?
Good afternoon. Can anyone explain why there is no switching between move and scale modes in the example? Any object and Point named Point001 is present in the scene
___________________________________________________________________________________________
try (DestroyDialog Test) catch()
rollout Test "Test"
(
pickbutton pbtn_Select_Object "Select Object"
on pbtn_Select_Object picked obj do
(
select obj
max scale
toolMode.coordsys $Point001
toolMode.transformCenter()
)
)
createDialog Test pos:[100,100] style:#(#style_titlebar, #style_border, #style_sysmenu, #style_minimizebox)
_____________________________________________________________________________________________
I'm using Max 2015. After executing the script, the main Toolbar is set to Move, not to Scale.
Comments
Oh how difficult... But thank
Oh how difficult... But thank you for your attention to my problem
.
If you find another solution, please share it here. :)
Tools and Scripts for Autodesk 3dsMax
.
Switch to Select and Scale mode, execute this and pick an object in the scene:
As you can see right after the object is picked the Select and Move mode will be turned on.
Tools and Scripts for Autodesk 3dsMax
I do not understand the answer.
Hello miauu!!! I do not understand the answer. How is my code different from yours? I even improved it. But the result is the same. Switching to SCALE mode does not occur.
________________________________________________________________________________________
try (DestroyDialog Test) catch()
rollout Test "Test"
(
pickbutton pbtn_Select_Object "Select Object"
on pbtn_Select_Object picked obj do
(
select obj
max move
max scale
toolMode.coordsys $Point001
toolMode.transformCenter()
)
)
createDialog Test pos:[100,100] style:#(#style_titlebar, #style_border, #style_sysmenu, #style_minimizebox)
_________________________________________________________________________________________
.
As you can see in my code there is no need to have any code in the
on pbtn_Select_Object picked obj do
It seems that no matter of the code in the picked obj event at the end the 3ds Max automatically turns on the Select and move.
This will do what you need:
Tools and Scripts for Autodesk 3dsMax