Package mrv :: Package maya :: Package nt :: Module base :: Class Transform
[hide private]
[frames] | no frames]

Class Transform

source code

             object --+                    
                      |                    
                   Node --+                
                          |                
         object --+       |                
                  |       |                
interface.Interface --+   |                
                      |   |                
interface.iDuplicatable --+                
                          |                
                 DependNode --+            
                              |            
                  ContainerBase --+        
                                  |        
                             Entity --+    
                                      |    
                     object --+       |    
                              |       |    
            interface.Interface --+   |    
                                  |   |    
                 interface.iDagItem --+    
                                      |    
                                DagNode --+
                                          |
                                         Transform

Precreated class to allow isinstance checking against their types and to add undo support to MFnTransform functions, as well as for usability
Notes:
Instance Methods [hide private]

Inherited from DagNode: __getitem__, dagPath, name

Inherited from DependNode: setLocked

Inherited from Node: __hash_2009__, __new__

Inherited from interface.iDuplicatable: copyTo, copyToOther

Inherited from interface.Interface: supports

Inherited from object: __delattr__, __format__, __getattribute__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

    MFnTransform Overrides
 
set(self, transformation)
Set the transformation of this Transform node
source code
    Convenience Overrides
 
getScale(self)
Returns: MVector containing the scale of the transform
source code
 
getShear(self)
Returns: MVector containing the shear of the transform
source code
 
setScale(self, vec_scale)
Set the scale of the transform with undo support from a single vector
source code
 
setShear(self, vec_shear)
Set the shear value of the transform with undo support from single vector
source code
 
shearBy(self, vec_value)
Add the given vector to the transform's shear
source code
 
scaleBy(self, vec_value)
Add the given vector to the transform's scale
source code
    DAG Modification

Inherited from DagNode: addChild, addInstancedChild, addParent, removeChild, removeParent, reparent, setParent, unparent

Inherited from DagNode (private): _setWorldspaceTransform

    Edit

Inherited from DagNode: delete, duplicate

Inherited from DependNode: addAttribute, removeAttribute, rename, setNamespace

Inherited from DependNode (private): _addRemoveAttr

    DAG Status Information

Inherited from DagNode: displayOverrideValue, isTemplate, isVisible

    DAG Query

Inherited from DagNode: child, childTransforms, children, childrenByType, hasChild, instance, instanceNumber, parent, parentAtIndex, shapes, transform

    Iterators

Inherited from DagNode: iterInstances

Inherited from interface.iDagItem: iterParents

    Overridden Methods

Inherited from DagNode: __eq__, __ne__

Inherited from DependNode: __getattr__, __repr__, __str__

Inherited from Node: __hash__

    Sets Handling

Inherited from DagNode (private): _getSetPlug

Inherited from DependNode: addTo, connectedSets, isMemberOf, removeFrom, sets

    Connections and Attributes

Inherited from DependNode: connections, dependencyInfo

    Status

Inherited from DagNode: isValid

Inherited from DependNode: isAlive

    General Query

Inherited from DagNode: apiObject, basename, object

Inherited from DependNode: referenceFile

    Interface

Inherited from Node: apiType, hasFn

Inherited from interface.iDuplicatable: copyFrom, createInstance

    Query Methods

Inherited from interface.iDagItem: childrenDeep, isPartOf, isRoot, isRootOf, parentDeep, root

    Name Generation

Inherited from interface.iDagItem: fullChildName

Class Methods [hide private]
    Interface

Inherited from Node: getMFnClasses

    Name Generation

Inherited from interface.iDagItem: addSep

Class Variables [hide private]

Inherited from DagNode: kNextPos

Inherited from Node: __metaclass__

Inherited from interface.iDagItem: kOrder_BreadthFirst, kOrder_DepthFirst

    preset type filters

Inherited from DependNode: fSets, fSetsObject

    Configuration

Inherited from DagNode (private): _sep

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

set(self, transformation)

source code 
Set the transformation of this Transform node
Decorators:
  • @undoable

getScale(self)

source code 
Returns:
MVector containing the scale of the transform

getShear(self)

source code 
Returns:
MVector containing the shear of the transform

setScale(self, vec_scale)

source code 
Set the scale of the transform with undo support from a single vector
Decorators:
  • @undoable

setShear(self, vec_shear)

source code 
Set the shear value of the transform with undo support from single vector
Decorators:
  • @undoable

shearBy(self, vec_value)

source code 
Add the given vector to the transform's shear
Decorators:
  • @undoable

scaleBy(self, vec_value)

source code 
Add the given vector to the transform's scale
Decorators:
  • @undoable