#include
<MFnGenericAttribute.h>
List of all
members.
Detailed Description
Generic attribute function set.
MFnGenericAttribute is a
function set for attributes that can accept several types of data.
A generic attribute is similar to a typed attribute (MFnTypedAttribute) except that
it has a list of types that it considers valid.
If the attribute will only take one type of data then it is more
efficient to use one of the other attribute function sets such as
MFnTypedAttribute or MFnNumericAttribute.
Constructor & Destructor Documentation
MFnGenericAttribute::MFnGenericAttribute |
( |
MObject & |
object, |
|
|
MStatus * |
ReturnStatus =
NULL |
|
|
) |
|
|
|
Constructor.
Class constructor that initializes the function set to the given
MObject.
- Parameters:
-
[in] |
object |
The MObject to
attach the function set to |
[out] |
ReturnStatus |
the return status |
- Status Codes:
-
MFnGenericAttribute::MFnGenericAttribute |
( |
const MObject & |
object, |
|
|
MStatus * |
ReturnStatus =
NULL |
|
|
) |
|
|
|
Constructor.
Class constructor that initializes the function set to the given
MObject.
- Parameters:
-
[in] |
object |
The MObject to
attach the function set to |
[out] |
ReturnStatus |
the return status |
- Status Codes:
-
Member Function Documentation
MFn::Type
MFnGenericAttribute::type |
( |
|
) |
const [virtual] |
const char *
MFnGenericAttribute::className |
( |
|
) |
const [protected, virtual] |
Class name.
Return the class name : "MFnGenericAttribute"
Reimplemented from MFnAttribute.
Creates a new generic attribute.
The create method needs to be called on a per node basis. That
means if you want to create and add the same attribute to multiple
nodes, you need to call the create method for each node to get a
unique MObject back.
If you call create just once and add the attribute to multiple
nodes, Maya will encounter a fatal error.
- Parameters:
-
[in] |
full |
Long name of the attribute. |
[in] |
brief |
Short name of the attribute. |
[out] |
ReturnStatus |
Status code. |
- Returns:
- New attribute.
- Status Codes:
-
Add a new connection type that this attribute can accept.
- Parameters:
-
- Returns:
- Status code
- Status Codes:
-
Add a new connection type that this attribute can accept.
- Parameters:
-
- Returns:
- Status code
- Status Codes:
-
Add a new connection type that this attribute can accept. This
method takes the type id (iff tag) of the data objects that can be
accepted.
- Parameters:
-
- Returns:
- Status code
- Status Codes:
-
Remove one of the types that this attribute can accept.
- Parameters:
-
[in] |
oldType |
old type that is no longer accepted |
- Returns:
- Status code
- Status Codes:
-
Remove one of the types that this attribute can accept.
- Parameters:
-
[in] |
oldType |
old type that is no longer accepted |
- Returns:
- Status code
- Status Codes:
-
Remove one of the types that this attribute can accept. This
method takes the type id (iff tag) of the data objects that can no
longer be accepted.
- Parameters:
-
[in] |
id |
id of old type that is no longer accepted |
- Returns:
- Status code
- Status Codes:
-