# MFnIntArrayData

## Base Class

MFnData

## Constants

None.

## Static Methods

None.

## Static Attributes

None.

## Constructors

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

## Object Methods

Signature | Parameters | Returns | Description
--- | --- | --- | ---
array() |  | MIntArray | Returns the encapsulated array as an MIntArray. For performance reasons the returned array is a live reference to the encapsulated array so changes made to one directly affect the other. The returned array is only valid for as long as the function set retains the same data object. If the function set is destroyed or attached to a different object then the returned array should be discarded. Failure to do so could result in Maya becoming unstable.
copyTo(array) | array - MIntArray | Reference to self. | Replaces the elements of array with those in the encapsulated array.
create() |  | MObject | Creates a new, empty int array data object, attaches it to the function set and returns an MObject which references it.
create(array) | array - MIntArray or sequence of ints | MObject | Creates a new, int array data object, initializes it with the elements from array, attaches it to the function set and returns an MObject which references it.
set(array) | array - MIntArray or sequence of ints | Reference to self. | Replaces the elements in the encapsulated array with those from the supplied array.
set(value, index) | value - int index - int | Reference to self. | Sets the value of the index'th array element.

## Object Attributes

None.

## Sequence Support

len() returns the number of elements in the encapsulated array.

Indexing and element assignment are supported. Element values are treated as Python ints.

Deletion, concatenation, repetition and slicing are not supported.

## Number Support

None.

## Comparison Support

None.

© 2011 Autodesk, Inc. All rights reserved.