Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello I am trying to run a script that orients an animation on a bone to a particular axis. I m just applying a -90 on the rotationZ on the composure offset matrix. My preferences have a Z up world orientation, just an FYI.
Here is an example:
And I am applying the -90 here:
Now the offset is in the correct orientation.
And then looking at the MEL script, maya doesn't output the rotation Z values. So I am wondering if a matrix needs to be created and how that would look like for a simple move on Z orientation.
I have something in python that I am trying to work out, which is this:
import maya.cmds as mc
mc.xform(s, t= (0,0,0), ro = (0,0,-90), s= (1,1,1), os = True)
mc.setAttr("root.offsetParentMatrix" type = "matrix")Not sure if this is in the right direction though. Wondering what would be the best approach.
Thanks!
Solved! Go to Solution.