OpenMaya.MFnGenericAttribute Class Reference
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
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 .
OpenMaya.MFnGenericAttribute.__init__
(
)
x.__init__(...) initializes x; see help(type(x)) for 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.