Python API 2.0 Reference: OpenMaya.MDGContext Class Reference

+ Inheritance diagram for OpenMaya.MDGContext:

Public Member Functions

__init__ ()
 
copy ()
 
getTime ()
 
isCurrent ()
 
isNormal ()
 
makeCurrent ()
 

Static Public Member Functions

current ()
 

Static Public Attributes

 kNormal = <OpenMaya.MDGContextobject>
 

Detailed Description

Dependency graph context.

Constructors

SignatureParametersDescription
MDGContext()  

Default constructor. Returns a new MDGContext object using the default context.

MDGContext(src) src - MDGContext

Copy constructor. Returns a new MDGContext object with the same value as src.

MDGContext(time) time - MTime

Returns a new MDGContext object which will evaluate at the given time.

 


Constructor & Destructor Documentation

OpenMaya.MDGContext.__init__ ( )
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Member Function Documentation

OpenMaya.MDGContext.copy ( )
copy(source) -> self

Copy data from source context.

* source (MDGContext) - The source object to copy from
OpenMaya.MDGContext.current ( )
static
Returns the current context being used for evaluation.
OpenMaya.MDGContext.getTime ( )
Returns the time at which this context is set to evaluate.
Signature: getTime()
Parameters:  
Returns: MTime
Description: Returns the time at which this context is set to evaluate. If the context does not have a specific time (i.e. it's a "normal" context) then a ValueError will be raised.
OpenMaya.MDGContext.isCurrent ( )
Returns True if the context is currently being used for evaluation. Returns False if some other context is being used for evaluation.
OpenMaya.MDGContext.isNormal ( )
Returns True if the context is set to evaluate normally. Returns False if the context is set to evaluate at a specific time.
Signature: isNormal()
Parameters:  
Returns: bool
Description: Returns True if the context is set to evaluate normally. Returns False if the context is set to evaluate at a specific time.
OpenMaya.MDGContext.makeCurrent ( )
Makes this context the new current one being used for evaluation. Returns the previous evaluation context.

Member Data Documentation

OpenMaya.MDGContext.kNormal = <OpenMaya.MDGContextobject>
static
Name: kNormal
Type: MDGContext
Description: Default/normal context.