#NEWLINE# def redoIt( self ) : #NEWLINE# #INDENT# self . __dgModify = OM . MDGModifier ( ) #NEWLINE# if ( not self . __isEditUsed ) : #NEWLINE# #INDENT# self . __exposeNodeArg = OM . MObject ( self . __dgModify . createNode ( AM_ExposeTransformNode . kPluginNodeId ) ) #NEWLINE# self . __exposeNodeFn . setObject ( self . __exposeNodeArg ) #NEWLINE# fn = OM . MFnDagNode ( self . __exposedObjectArg ) #NEWLINE# self . __dgModify . renameNode ( self . __exposeNodeArg , ( '%s_exposeTransform' % fn . name ( ) ) ) #NEWLINE# #UNINDENT# if ( len ( self . __exposeNodeName ) > 0 ) : #NEWLINE# #INDENT# self . __dgModify . renameNode ( self . __exposeNodeArg , self . __exposeNodeName ) #NEWLINE# #UNINDENT# self . __dgModify . doIt ( ) #NEWLINE# plug = OM . MPlug ( ) #NEWLINE# if self . __exposedObjectArg . isValid ( ) : #NEWLINE# #INDENT# self . __dgModify . commandToExecute ( ( 'connectAttr -f %s.worldMatrix %s.%s' % ( self . __exposedObjectArg . fullPathName ( ) , self . __exposeNodeFn . name ( ) , AM_ExposeTransformNode . kObjectMatrixAttrName ) ) ) #NEWLINE# #UNINDENT# if self . __referenceObjectArg . isValid ( ) : #NEWLINE# #INDENT# self . __dgModify . commandToExecute ( ( 'connectAttr -f %s.worldMatrix %s.%s' % ( self . __referenceObjectArg . fullPathName ( ) , self . __exposeNodeFn . name ( ) , AM_ExposeTransformNode . kReferenceMatrixAttrName ) ) ) #NEWLINE# #UNINDENT# if ( self . __rotateOrderArg is not None ) : #NEWLINE# #INDENT# plug = self . __exposeNodeFn . findPlug ( AM_ExposeTransformNode . kRotateOrderAttrName , True ) #NEWLINE# if ( not plug . isConnected ( ) ) : #NEWLINE# #INDENT# self . __dgModify . commandToExecute ( ( 'setAttr %s.%s %i' % ( self . __exposeNodeFn . name ( ) , AM_ExposeTransformNode . kRotateOrderAttrName , self . __rotateOrderArg ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( self . __normalizeArg is not None ) : #NEWLINE# #INDENT# plug = self . __exposeNodeFn . findPlug ( AM_ExposeTransformNode . kNormalizeAttrName , True ) #NEWLINE# if ( not plug . isConnected ( ) ) : #NEWLINE# #INDENT# self . __dgModify . commandToExecute ( ( 'setAttr %s.%s %s' % ( self . __exposeNodeFn . name ( ) , AM_ExposeTransformNode . kNormalizeAttrName , self . __normalizeArg . __str__ ( ) . lower ( ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# if self . __objectAxisArg : #NEWLINE# #INDENT# plug = self . __exposeNodeFn . findPlug ( AM_ExposeTransformNode . kObjectAxisAttrName , True ) #NEWLINE# if ( not plug . isConnected ( ) ) : #NEWLINE# #INDENT# self . __dgModify . commandToExecute ( ( 'setAttr %s.%s %f %f %f' % ( self . __exposeNodeFn . name ( ) , AM_ExposeTransformNode . kObjectAxisAttrName , self . __objectAxisArg . x , self . __objectAxisArg . y , self . __objectAxisArg . z ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# if self . __referenceAxisArg : #NEWLINE# #INDENT# plug = self . __exposeNodeFn . findPlug ( AM_ExposeTransformNode . kReferenceAxisAttrName , True ) #NEWLINE# if ( not plug . isConnected ( ) ) : #NEWLINE# #INDENT# self . __dgModify . commandToExecute ( ( 'setAttr %s.%s %f %f %f' % ( self . __exposeNodeFn . name ( ) , AM_ExposeTransformNode . kReferenceAxisAttrName , self . __referenceAxisArg . x , fn . __referenceAxisArg . y , self . __referenceAxisArg . z ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( not self . __isEditUsed ) : #NEWLINE# #INDENT# self . __dgModify . commandToExecute ( ( 'select %s' % self . __exposeNodeFn . name ( ) ) ) #NEWLINE# #UNINDENT# self . __dgModify . doIt ( ) #NEWLINE# self . setResult ( self . __exposeNodeFn . name ( ) )