def getWorldRotMatrix( obj ): ''' returns the world matrix for the given obj ''' worldMatrix = Matrix( getAttr( '%s.worldMatrix' % obj ), 4 ) worldMatrix.set_position( (0, 0, 0) ) return worldMatrix
def getLocalRotMatrix( obj ): ''' returns the local matrix for the given obj ''' localMatrix = Matrix( getAttr( '%s.matrix' % obj ), 4 ) localMatrix.set_position( (0, 0, 0) ) return localMatrix
def getWorldRotMatrix(obj): ''' returns the world matrix for the given obj ''' worldMatrix = Matrix(getAttr('%s.worldMatrix' % obj), 4) worldMatrix.set_position((0, 0, 0)) return worldMatrix
def getLocalRotMatrix(obj): ''' returns the local matrix for the given obj ''' localMatrix = Matrix(getAttr('%s.matrix' % obj), 4) localMatrix.set_position((0, 0, 0)) return localMatrix
def getWorldRotMatrix(obj): """ returns the world matrix for the given obj """ worldMatrix = Matrix(getAttr("%s.worldMatrix" % obj), 4) worldMatrix.set_position((0, 0, 0)) return worldMatrix
def getLocalRotMatrix(obj): """ returns the local matrix for the given obj """ localMatrix = Matrix(getAttr("%s.matrix" % obj), 4) localMatrix.set_position((0, 0, 0)) return localMatrix