x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Member Function Documentation
OpenMaya.MArrayDataBuilder.__len__
(
)
x.__len__() <==> len(x)
OpenMaya.MArrayDataBuilder.addElement
(
)
addElement(index) -> MDataHandle
Adds a new element to the array at the given index.
* index (int) - the index at which we wish to add the new element
Returns The handle for the new element
OpenMaya.MArrayDataBuilder.addElementArray
(
)
addElementArray(index) -> MArrayDataHandle
Adds a new element to the array at the given index. The added element is also an array.
* index (int) - the index at which we wish to add the new element
Returns The handle for the new array element
OpenMaya.MArrayDataBuilder.addLast
(
)
addLast() -> MDataHandle
Adds a new element to the end of the array. The index of the element will be the current highest index + 1.
Returns The handle for the new element
OpenMaya.MArrayDataBuilder.addLastArray
(
)
addLastArray() -> MArrayDataHandle
Adds a new element to the end of the array. The added element is also an array. The index of the element will the current highest index + 1.
Returns The handle for the new array element
OpenMaya.MArrayDataBuilder.copy
(
)
copy(source) -> self
Copy data from source builder.
* source (MArrayDataBuilder) - The source object to copy from
OpenMaya.MArrayDataBuilder.growArray
(
)
growArray(amount) -> self
Grows the array storage by the given amount.
* amount (int) - the amount to grow the array by
OpenMaya.MArrayDataBuilder.removeElement
(
)
removeElement(index) -> self
Removes the specified element from the array
* index (int) - the element of the array to remove
OpenMaya.MArrayDataBuilder.setGrowSize
(
)
setGrowSize(size) -> self
Sets the grow size of the array. As elements are added to the array, the builder will allocate memory in chunks. This method tells the builder how many elements to allocate each time it grows the array.
* size (int) - the number of elements to allocate when growing the array