Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Maya Python: How to set negative scale?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
adrianadce
209 Views, 2 Replies

Maya Python: How to set negative scale?

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.

Tags (2)
Labels (2)
2 REPLIES 2
Message 2 of 3
brentmc
in reply to: adrianadce

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
Message 3 of 3
adrianadce
in reply to: brentmc

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report