hi all, i'm trying to get an enum value which in c++ would be passed as a reference:
# MFnTransform.getRotation (double rotation[3], MTransformationMatrix::RotationOrder &order) const import maya.OpenMaya as api sel = api.MSelectionList() sel.add( 'persp' ) obj = api.MObject() sel.getDependNode( 0, obj ) su = api.MScriptUtil() dblPtr = su.asDoublePtr() intPtr = su.asIntPtr() api.MFnTransform(obj).getRotation( dblPtr, intPtr ) it seems to me that the second argument would have to be an int pointer as there is not, afaik, an MTranformationMatrix.RotationOrder python object. i'm really hoping that there is a way to do this. -chad --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---
