Package mrv :: Package maya :: Package nt :: Module anim :: Class AnimCurve
[hide private]
[frames] | no frames]

Class AnimCurve

source code

             object --+        
                      |        
              base.Node --+    
                          |    
         object --+       |    
                  |       |    
interface.Interface --+   |    
                      |   |    
interface.iDuplicatable --+    
                          |    
            base.DependNode --+
                              |
                             AnimCurve

Type representing a maya animation cuvrve, fixes existing MFnAnimCurve methods and provides new convenience methods as well
Instance Methods [hide private]
 
getTangent(self, index, isInTangent)
Returns: tuple(x,y) tuple containing the x and y positions of the tangent at index:
source code
 
getTangentAsAngle(self, index, isInTangent)
Returns: tuple(MAngle, weight) tuple containing the angle and weight of the tangent.
source code

Inherited from base.DependNode: duplicate, setLocked

Inherited from base.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__

    Overridden Methods

Inherited from base.DependNode: __getattr__, __repr__, __str__

Inherited from base.Node: __eq__, __hash__, __ne__

    Sets Handling

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

Inherited from base.DependNode (private): _getSetPlug

    Edit

Inherited from base.DependNode: addAttribute, delete, removeAttribute, rename, setNamespace

Inherited from base.DependNode (private): _addRemoveAttr

    Connections and Attributes

Inherited from base.DependNode: connections, dependencyInfo

    Status

Inherited from base.DependNode: isAlive, isValid

    General Query

Inherited from base.DependNode: apiObject, basename, object, referenceFile

    Interface

Inherited from base.Node: apiType, hasFn

Inherited from interface.iDuplicatable: copyFrom, createInstance

Class Methods [hide private]
 
findAnimation(cls, iter_nodes, asNode=True)
Returns: list-compatible object containing animation curves attached to the nodes in the given object.
source code
    Interface

Inherited from base.Node: getMFnClasses

Class Variables [hide private]

Inherited from base.Node: __metaclass__

    preset type filters

Inherited from base.DependNode: fSets, fSetsObject

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

findAnimation(cls, iter_nodes, asNode=True)
Class Method

source code 
Parameters:
  • iter_nodes - MSelection list or list of MObjects or Nodes containing whose animation you would like to retrieve.
  • asNode - If True, the animation curves will be wrapped, or MObjects otherwise ( to gain performance )
Returns:
list-compatible object containing animation curves attached to the nodes in the given object.

getTangent(self, index, isInTangent)

source code 
Parameters:
  • index - Index of the key for which the tangent x,y value is required
  • isInTangent - If true, the in-tangent is returned, else, the out-tangent is returned
Returns:

tuple(x,y) tuple containing the x and y positions of the tangent at index:

  • x is the x value of the slope of the tangent in seconds
  • y is the absolute y value of the slope of the tangent

getTangentAsAngle(self, index, isInTangent)

source code 
Returns:
tuple(MAngle, weight) tuple containing the angle and weight of the tangent.

Note: See getTangent for all other parameters