user9335777
user9335777

Reputation:

Python With Maya Selecting Object and Rotating It

So I am working on a very small project, and I need to have an object rotated one or two times per minute, and I need to do it using Python. Does anyone have any suggestions? Thanks so much.

Upvotes: 0

Views: 1451

Answers (1)

Lex
Lex

Reputation: 5014

Try the rotate function?...

from maya import cmds   
cmds.select(object1)
cmds.rotate(0, 0, 10, relative=True, componentSpace=True)

Maya 2018, python, move and rotate extracted face

Maya Python modules complete documentation?

Upvotes: 1

Related Questions