OpenMaya.MDGContext Class Reference
Dependency graph context.
Constructors
Signature Parameters Description
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 .
kNormal = <OpenMaya.MDGContextobject>
OpenMaya.MDGContext.__init__
(
)
x.__init__(...) initializes x; see help(type(x)) for signature
OpenMaya.MDGContext.copy
(
)
copy(source) -> self
Copy data from source context.
* source (MDGContext) - The source object to copy from
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.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.kNormal = <OpenMaya.MDGContextobject>
static
Name: kNormal
Type: MDGContext
Description: Default/normal context.