I'm trying to use MItMeshFaceVertex:: getUV ( float2 &uvPoint, const MString *uvSet )
using the handy MScriptUtil() to make and set a pointer for a Float2 #get shell uv floatArray = OpenMaya.MScriptUtil() floatArray.createFromList([0.0,0.0],2) shellUVptr = floatArray.asFloat2Ptr() currentShellFvIter.getUV(shellUVptr,uvFrom) shellU = OpenMaya.MScriptUtil().getFloatArrayItem(shellUVptr,0) shellV = OpenMaya.MScriptUtil().getFloatArrayItem(shellUVptr,1) I get the error: # shellU = OpenMaya.MScriptUtil().getFloatArrayItem(shellUVptr,0) # TypeError: argument number 1: a 'float *' is expected, 'PySwigObject(_p_a_2__float)' is received # I can't find any usage examples of .getUV or .getFloatArrayItem to determine what i've done wrong. Any help? --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
