Maya Python: How to set negative scale?

Maya Python: How to set negative scale?

adrianadce
Explorer Explorer
531 Views
2 Replies
Message 1 of 3

Maya Python: How to set negative scale?

adrianadce
Explorer
Explorer
cmds.setAttr(objectName + ".scale", -1, -1, -1)

This results in scale being set to 0.01. How do I set negative scale through script?

 

If I input -1, into scale channels manually it works, so the object transform itself is not at fault.

 

Please help, I've been pulling my hair out because this feels so basic but I can't find any solution online.

Accepted solutions (1)
532 Views
2 Replies
Replies (2)
Message 2 of 3

brentmc
Autodesk
Autodesk
Accepted solution

This should work.

Check the attribute editor to make sure there are no min scaling limits set on the transform you are trying to modify.

Brent McPherson
Principle Engineer
0 Likes
Message 3 of 3

adrianadce
Explorer
Explorer
You're right.
I've made a mistake while trouble shooting, and didn't notice this. Thank you.
0 Likes