I am a 3D animator.
Currently I want to create a script python 2.7 for maya as follows:
-Select any object.
-Create 2 locators at that object location.
-Switch to move tool /rotate tool of each locator.
-When there are no more 2 locators selected, perform an aim constraint with the second locator, World up object.
I’m stuck at the last step, not knowing how to make the script run when I no longer have 2 locators selected.
Sorry if it causes confusion, English is not my specialized language. tks u