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.
Constructor:
RefTargContainer...Properties:
<RefTargContainer>.holdAsWeakReferences BooleanClass default: false -- boolGet/set whether to hold weak references or not. Exposed by the Interface documented below.
Interface: IRefTargContainerProperties:
.holdAsWeakReferences : boolean : Read|WriteGet/set whether to hold weak references or not.
Methods:
<integer>GetNumItems()Returns the number of items in the container.
<maxObject>GetItem <index>indexReturns the indexed item from the container, or undefined if the index is invalid.
<index>AppendItem <maxObject>itemAppends the specified item to the container.
Returns the item's index within the container.
<void>SetItem <index>index <maxObject>itemSets the indexed item to the specified object.
<index>InsertItem <index>index <maxObject>itemInserts 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>indexRemoves the indexed item from the container.
<index>FindFirstItem <maxObject>itemFinds the first occurrence of the specified item in the container and returns its index.
<index>GetChangedRefTargetIndex()Returns the index of the changed RefTarget.
If none, returns 0.
<maxObject>GetChangedRefTarget()Returns the changed RegTarget object.
If none, returns undefined.
Interface: IRefTargContainerStaticInterfaceMethods:
<maxObject>CreateInstance()Creates an instance of the container and returns it as the result.