OpenMaya.MObject Class Reference

OpenMaya.MObject Class Reference
+ この参照ページは、次の概要トピックと関連付けられています。

Class Description

Opaque wrapper for internal Maya objects.

Constructors

SignatureParametersDescription
MObject()  

Default constructor. Returns an empty MObject instance (i.e. one which contains kNullObj).

MObject(src) src - MObject Copy constructor. Returns a new MObject instance which references the same internal Maya object as src, which must be another MObject instance.

Comparison Support

==True if both MObjects refer to the same internal Maya object, False otherwise.
!=True if the two MObjects refer to different internal Maya objects, or one is null and the other is not. False otherwise.

 


+ Inheritance diagram for OpenMaya.MObject:

Public Member Functions

__eq__ ()
 
__ge__ ()
 
__gt__ ()
 
__init__ ()
 
__le__ ()
 
__lt__ ()
 
__ne__ ()
 
apiType ()
 
hasFn ()
 
isNull ()
 

Static Public Attributes

 kNullObj = <OpenMaya.MObjectobject>
 

Properties

 apiTypeStr
 

Constructor & Destructor Documentation

OpenMaya.MObject.__init__ ( )
x.__init__(...) initializes x; see help(type(x)) for signature

Member Function Documentation

OpenMaya.MObject.__eq__ ( )
x.__eq__(y) <==> x==y
OpenMaya.MObject.__ge__ ( )
x.__ge__(y) <==> x>=y
OpenMaya.MObject.__gt__ ( )
x.__gt__(y) <==> x>y
OpenMaya.MObject.__le__ ( )
x.__le__(y) <==> x<=y
OpenMaya.MObject.__lt__ ( )
x.__lt__(y) <==> x<y
OpenMaya.MObject.__ne__ ( )
x.__ne__(y) <==> x!=y
OpenMaya.MObject.apiType ( )
Returns the function set type for the object.
Signature: apiType()
Parameters:  
Returns: MFn type constant
Description: Returns a constant indicating the type of the internal Maya object. If the MObject is null MFn.kInvalid will be returned.
OpenMaya.MObject.hasFn ( )
Tests whether object is compatible with the specified function set.
Signature: hasFn(fn)
Parameters: fn - MFn type constant
Returns: Bool
Description: Returns True if the internal Maya object supports the specified function set specified by fn.
OpenMaya.MObject.isNull ( )
Tests whether there is an internal Maya object.
Signature: isNull()
Parameters:  
Returns: Bool
Description: Returns True if the MObject is not referring to any Maya internal internal object (i.e. it is equivalent to kNullObj).

Member Data Documentation

OpenMaya.MObject.kNullObj = <OpenMaya.MObjectobject>
static
Name: kNullObj
Type: MObject
Description: Used to indicate that an MObject instance does not refer to any internal Maya object. Also used as a default value for MObject parameters to many methods.

Property Documentation

OpenMaya.MObject.apiTypeStr
static
 (readonly) String containing the object's type name.
Name: apiTypeStr
Type: string
Access: R
Description: The internal Maya object's MFn type as a string. E.g. 'kTime' for a time node.