OpenMaya.MFnGenericAttribute Class Reference

OpenMaya.MFnGenericAttribute Class Reference
+ 本参考页将链接到以下概述主题:

Class Description

Functionset for creating and working with attributes which can accept several different types of data.

Method resolution order:
-   MFnGenericAttribute
-   MFnAttribute
-   MFnBase
-   __builtin__.object

Base Class

MFnAttribute<h2>Constructors

SignatureParametersDescription
MFnGenericAttribute()  

Default constructor. Returns a new MFnGenericAttribute function set with no Maya object attached.

MFnGenericAttribute(object) object - MObject

Returns a new MFnGenericAttribute function set, attached to the specified Maya object.

 


+ Inheritance diagram for OpenMaya.MFnGenericAttribute:

Public Member Functions

__init__ ()
 
addDataType ()
 
addNumericType ()
 
addTypeId ()
 
create ()
 
removeDataType ()
 
removeNumericType ()
 
removeTypeId ()
 
- Public Member Functions inherited from OpenMaya.MFnAttribute
__init__ ()
 
accepts ()
 
acceptsAttribute ()
 
addToCategory ()
 
getAddAttrCmd ()
 
hasCategory ()
 
setNiceNameOverride ()
 
- Public Member Functions inherited from OpenMaya.MFnBase
__init__ ()
 
hasObj ()
 
object ()
 
setObject ()
 
type ()
 

Additional Inherited Members

- Static Public Attributes inherited from OpenMaya.MFnAttribute
int kDelete = 0
 
int kNothing = 2
 
int kReset = 1
 
- Properties inherited from OpenMaya.MFnAttribute
 affectsAppearance
 
 affectsWorldSpace
 
 array
 
 cached
 
 channelBox
 
 connectable
 
 disconnectBehavior
 
 dynamic
 
 extension
 
 hidden
 
 indeterminant
 
 indexMatters
 
 internal
 
 isProxyAttribute
 
 keyable
 
 name
 
 parent
 
 readable
 
 renderSource
 
 shortName
 
 storable
 
 usedAsColor
 
 usedAsFilename
 
 usesArrayDataBuilder
 
 worldSpace
 
 writable
 

Constructor & Destructor Documentation

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

Member Function Documentation

OpenMaya.MFnGenericAttribute.addDataType ( )
Adds the specified Maya data type to the list of those accepted by the attribute.
Signature: addDataType(type)
Parameters: type - MFnData Type constant
Returns: Reference to self.
Description: Adds the specified Maya data type to the list of those accepted by the attribute.
OpenMaya.MFnGenericAttribute.addNumericType ( )
Adds the specified numeric type to the list of those accepted by the attribute.
Signature: addNumericType(type)
Parameters: type - MFnNumericData Type constant
Returns: Reference to self.
Description: Adds the specified numeric type to the list of those accepted by the attribute.
OpenMaya.MFnGenericAttribute.addTypeId ( )
Adds the specified data typeId to the list of those accepted by the attribute.
Signature: addTypeId(typeId)
Parameters: typeId - MTypeId
Returns: Reference to self.
Description: Adds the specified MPxData or MPxGeometryData typeId to the list of those accepted by the attribute.
OpenMaya.MFnGenericAttribute.create ( )
Creates a new generic attribute, attaches it to the function set and returns it as an MObject.
Signature: create(longName, shortName)
Parameters: longName - string
shortName - string
Returns: MObject
Description: Create a new message attribute with the given longName and shortName, attach it to the function set and return it in an MObject.
OpenMaya.MFnGenericAttribute.removeDataType ( )
Removes the specified Maya data type from the list of those accepted by the attribute.
Signature: removeDataType(type)
Parameters: type - MFnData Type constant
Returns: Reference to self.
Description: Removes the specified Maya data type from the list of those accepted by the attribute.
OpenMaya.MFnGenericAttribute.removeNumericType ( )
Removes the specified numeric type from the list of those accepted by the attribute.
Signature: removeNumericType(type)
Parameters: type - MFnNumericData Type constant
Returns: Reference to self.
Description: Removes the specified numeric type from the list of those accepted by the attribute.
OpenMaya.MFnGenericAttribute.removeTypeId ( )
Removes the specified data typeId from the list of those accepted by the attribute.
Signature: removeTypeId(typeId)
Parameters: typeId - MTypeId
Returns: Reference to self.
Description: Removes the specified data typeId from the list of those accepted by the attribute.