Hey all,

I'm having some trouble accessing the global scale of a transform matrix.  Not 
quite sure why this isn't working...

in the pymel docs, for a transform node, there's two methods; getMatrix, and 
getTransformation.  They both say they return a transformation Matrix - ok 
great.

When I use getMatrix(worldSpace=1) - it returns the transformation matrix I 
wanna work with.

But using the getScale method on this gives me errors...

When I use getTransformation().getScale() - I don't get errors, but I also 
don't get the matrix I wanna work with.  what gives? or better yet, how do I 
access globalScale?

####
import pymel.core as pm

objectMat=pm.selected()[0].getMatrix(worldSpace=1)
print objectMat.getScale("world")

objectTfm=pm.selected()[0].getTransformation()
print objectTfm.getScale("world")
####


Thanks guys!



-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/5aaae322-8c26-4e12-86d2-68d5ceb849df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to