|
Python API 2.0 Reference
|
Inheritance diagram for OpenMaya.MFnGenericAttribute:Public Member Functions | |
| def | __init__ () |
| def | addDataType () |
| def | addNumericType () |
| def | addTypeId () |
| def | create () |
| def | removeDataType () |
| def | removeNumericType () |
| def | removeTypeId () |
Public Member Functions inherited from OpenMaya.MFnAttribute | |
| def | __init__ () |
| def | accepts () |
| def | acceptsAttribute () |
| def | addToCategory () |
| def | getAddAttrCmd () |
| def | hasCategory () |
| def | setNiceNameOverride () |
Public Member Functions inherited from OpenMaya.MFnBase | |
| def | __init__ () |
| def | hasObj () |
| def | object () |
| def | setObject () |
| def | type () |
Static Public Member Functions | |
| def | __new__ () |
Static Public Member Functions inherited from OpenMaya.MFnAttribute | |
| def | __new__ () |
Static Public Member Functions inherited from OpenMaya.MFnBase | |
| def | __new__ () |
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 = property(...) | |
| affectsWorldSpace = property(...) | |
| array = property(...) | |
| cached = property(...) | |
| channelBox = property(...) | |
| connectable = property(...) | |
| disconnectBehavior = property(...) | |
| dynamic = property(...) | |
| extension = property(...) | |
| hidden = property(...) | |
| indeterminant = property(...) | |
| indexMatters = property(...) | |
| internal = property(...) | |
| isProxyAttribute = property(...) | |
| keyable = property(...) | |
| name = property(...) | |
| parent = property(...) | |
| readable = property(...) | |
| renderSource = property(...) | |
| shortName = property(...) | |
| storable = property(...) | |
| usedAsColor = property(...) | |
| usedAsFilename = property(...) | |
| usesArrayDataBuilder = property(...) | |
| worldSpace = property(...) | |
| writable = property(...) | |
Functionset for creating and working with attributes which can accept several different types of data. Method resolution order: - MFnGenericAttribute - MFnAttribute - MFnBase - builtins.object
MFnAttribute<h2>Constructors
| Signature | Parameters | Description |
|---|---|---|
| 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. |
| def OpenMaya.MFnGenericAttribute.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
|
static |
Create and return a new object. See help(type) for accurate signature.
| 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. |