# MFnTypedAttribute

## Base Class

MFnAttribute

## Constants

None.

## Static Methods

None.

## Static Attributes

None.

## Constructors

Signature | Parameters | Description
--- | --- | ---
MFnTypedAttribute() |  | Default constructor. Returns a new MFnTypedAttribute function set with no Maya object attached.
MFnTypedAttribute(object) | object - MObject | Returns a new MFnTypedAttribute function set, attached to the specified Maya object.

## Object Methods

Signature | Parameters | Returns | Description
--- | --- | --- | ---
attrType() |  | MFnData Type constant | Returns the type of data handled by the attribute.
create(longName, shortName, type, defaultValue=MObject.kNullObj) | longName - string shortName - string type - MTypeId or MFnData Type constant defaultValue - MObject | MObject | Creates a new attribute of the given type with the given longName, shortName and defaultValue, attaches it to the function set and returns it in an MObject.

## Object Attributes

Name | Type | Access | Description
--- | --- | --- | ---
default | MObject | RW | Default value of attr.

## Sequence Support

None.

## Number Support

None.

## Comparison Support

None.

© 2011 Autodesk, Inc. All rights reserved.