Chad - it's because rotatePivot isn't actually a plug, it's a component (like pCube1.vtx).
I asked earlier on this forum if there was any automated way to discover these component "plug aliases". But nobody responded, and I still haven't found a way to do so... - Paul On Fri, May 8, 2009 at 11:43 AM, Chadrik <[email protected]> wrote: > > su, > this is a very interesting problem you've found. it seems that I > cannot get a valid MPlug for any rotatePivot plugs: > > import maya.OpenMaya as om > sel = om.MSelectionList() > plug = om.MPlug() > sel.add( 'persp.rotatePivot' ) > sel.getPlug( 0, plug ) > # Error: (kFailure): NULL object returned > # Traceback (most recent call last): > # File "<maya console>", line 5, in <module> > # RuntimeError: (kFailure): NULL object returned # > > this is odd because both rotatePivot and translate are type 'double3', > and we can get an MPlug of translate without a problem: > > sel = om.MSelectionList() > plug = om.MPlug() > sel.add( 'persp.translate' ) > sel.getPlug( 0, plug ) > > does anyone have any insight into why this would be? > > -chad > > > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
