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 -~----------~----~----~----~------~----~------~--~---
