My getUvShellsIds method crashes on running the code below.
Have a dagPath that points correctly a polygon plane.
I've tried using an MObject instead of a MDagPath, I've tried passing in the shape instead of the plane.
Crazily, I'm pretty sure this code does work every now and then... Then the next day it crashes again. Sigh. I really need a good way to get UV shells without doing any UI selection.
Create a new polygon plane, run the python code below:
name = 'pPlane1' # or pPlaneShape1, same result
selectionList = maya.OpenMaya.MSelectionList()
myMesh = maya.OpenMaya.MFnMesh(dagPath)
uvShellIDs = maya.OpenMaya.MIntArray()
numShells = maya.OpenMaya.MScriptUtil().asUintPtr()
Btw, Using maya 2011 64bit, on Windows 7.