RefTargContainer - superclass: ReferenceTarget; super-superclass:MAXWrapper - 1:1 - classID: #(-1586942241, -696182977)
The RefTargContainer ReferenceTarget can be used to hold strong or weak references to other reference objects.
Available in 3ds Max 2015 and higher.
RefTargContainer...
<RefTargContainer>.holdAsWeakReferences BooleanClass default: false -- bool
Get/set whether to hold weak references or not. Exposed by the Interface documented below.
Interface: IRefTargContainer
.holdAsWeakReferences : bool : Read|Write
Get/set whether to hold weak references or not.
<integer>GetNumItems()
Returns the number of items in the container.
<maxObject>GetItem <index>index
Returns the indexed item from the container, or undefined if the index is invalid.
<index>AppendItem <maxObject>item
Appends the specified item to the container.
Returns the item's index within the container.
<void>SetItem <index>index <maxObject>item
Sets the indexed item to the specified object.
<index>InsertItem <index>index <maxObject>item
Inserts the object specified by the second argument at the indexed position given by the first argument.
Returns the new index of the item.
<void>RemoveItem <index>index
Removes the indexed item from the container.
<index>FindFirstItem <maxObject>item
Finds the first occurrence of the specified item in the container and returns its index.
<index>GetChangedRefTargetIndex()
Returns the index of the changed RefTarget.
<maxObject>GetChangedRefTarget()
Returns the changed RegTarget object.
Interface: IRefTargContainerStaticInterface
<maxObject>CreateInstance()
Creates an instance of the container and returns it as the result.