Tips, Tricks, Quirks and Bugs

Various tips about quirky problems in rigging, animation, coding and development pipeline.

The Maya Move Command

Posted by:

As per usual Autodesk documentation on this is abysmal.  The following explanation of the absolute flag is taken directly from the Autodesk website:

absolute(a)
Perform an absolute operation

Are you kidding me Autodesk?  That’s bush league man!  You couldn’t get away with that in 3rd grade.  You get an F!

So I did extensive research and experimentation with the move command and as I did so I wrote out my notes, and here they are, you are welcome.

First of all, translating an object uses ...

Continue Reading →
0

Maya Grid Display Flaw

Posted by:

So, file this under irritating maya bugs.  BTW, there used to be a place where you could report these to Autodesk.  I guess they got rid of that, I suppose it’s easier to ignore the feedback you never get…

 

Anyway, the maya grid display may be displaying the wrong grid configuration when you start maya.  You may even build something under the impression that you are using accurate grids, but if you were to open the grid preferences and do nothing ...

Continue Reading →
0

Get the locations of points on a curve, pointPosition(), Maya, Python

Posted by:

So Autodesk documentation on this is sparse and a bit inaccurate.

In order to get this function to work you need to separate out the parameters at the ‘.’ (something I am finding is a common thread among many of maya’s library functions)

This is the way to do it:

 

Note that this won’t work:

pointA = cmds.pointPosition(str(selectedCurve.cv[1]), world = True)

Because the .cv[1] is not separated out.

This however will work:

pointA = cmds.pointPosition(str(selectedCurve) + ‘.cv[0]’, world = True)#this is just another way of converting a ...

Continue Reading →
0

Maya GUI button commands, how they work, Maya Scripting

Posted by:

I was a bit confused on how Maya GUI button command calls work.

It seems that when I was following tutorials they put the variables from the GUI into the parameters for the call which of course meant that they needed to be in the definition too.

After working with Maya GUI interactions for a while I realized that information that is derived from the GUI need not be included in the parameters because they are derived directly from the GUI interface, ...

Continue Reading →
0

IK handle disappears and fails while parenting, Maya, Python

Posted by:

So I wrote a function to parent IK Handles under a shape and after the parent there was no IK handle and it didn’t work.
Autodesk documentation says the the return is a string, but it is actually a list.
It turns out that what is returned in an IkHandle() command is both the handle and the effector,  In that order.  So if you want that to work you have to specify the handle:
cmds.parent(ikHandle[0], parentShape)

Continue Reading →
0