Skip to content

class AnimationTrackCollection ​

Collection of animation tracks. Currently animation and related types are API-only and not used by processors or external format's like *FBX, USD, GLTF, BGEO and etc)

See also: ObjectCollection

Properties ​

PropertyDescription
NameThe name of the AnimationTrackCollection object. (Inherited from Object)

Methods ​

MethodDescription
AddAnimationTrackAdds an AnimationTrack object to the collection. The handle refer to the AnimationTrack until it is removed from the collection.
AddObjectAdds an object to the collection. The handle refers to the object until the object is removed from the collection again. (Inherited from ObjectCollection)
AddObjectSortedAdds an object to the collection, as AddObject, but sorts the object into the collection based on its name. (Inherited from ObjectCollection)
AddObserverAdds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
FindAnimationTrackFinds and returns AnimationTrack by name or nullptr.
FindAnimationTrackByNodeGUIDFinds and returns AnimationTrack by nodeGUID or nullptr.
FindObjectFinds a named object in the collection. The first object with this name is returned. The search is case-sensitive. (Inherited from ObjectCollection)
GetAnimationTrackThe object the handle is referring to.
GetClassGet the name of the AnimationTrackCollection class. (Inherited from Object)
GetFirstItemReturns the start of the collection. The handle returned refers to the first object in the collection. If the handle is null, then the collection is empty. (Inherited from ObjectCollection)
GetItemReturns the handle of the i:th item. (Inherited from ObjectCollection)
GetItemAsObjectReturns the object of the i:th item. (Inherited from ObjectCollection)
GetItemCountThe number of items in the collection. (Inherited from ObjectCollection)
GetItemsObjectThe object the handle is referring to. (Inherited from ObjectCollection)
GetNextItemReturns the handle to the next item in the collection. Use GetFirstItem and this method to step through the collection. If the return is null, the end of the collection has been reached. (Inherited from ObjectCollection)
GetNextItemAsAnimationTrackReturns the object of the next item.
IsAReturns true if AnimationTrackCollection is a or is a descendant of the class named as the type parameter. (Inherited from Object)
IsAnimationTrackInCollectionReturns true if the object is in the collection.
IsAnimationTrackWithNodeGUIDInCollectionReturns true if a track for the given node GUID is in the collection.
IsItemInCollectionReturns true if the item is in the collection. (Inherited from ObjectCollection)
IsNullReturns true if the AnimationTrackCollection object is invalid. (Inherited from Object)
IsObjectInCollectionReturns true if the object is in the collection. (Inherited from ObjectCollection)
IsSameObjectAsReturns true if the AnimationTrackCollection object is valid. (Inherited from Object)
NonNullReturns true if the AnimationTrackCollection object is valid. (Inherited from Object)
PrintInfoPrints the content/info of the AnimationTrackCollection object to the log. (Inherited from Object)
RemoveAllItemsRemoves all items from the collection. (Inherited from ObjectCollection)
RemoveAnimationTrackRemoves an animation track from the collection. Only the first occurrence of the object is removed.
RemoveItemRemoves an item from the collection. The handle returned is the first item after this item that is in the collection. If the return is null, the item was the last item in the collection. Warning! The handle is invalid after the removal of the object. (Inherited from ObjectCollection)
RemoveObjectRemoves an object from the collection. Only the first occurrence of the object is removed from the collection. (Inherited from ObjectCollection)
RemoveObserverRemoves a previously added observer object. (Inherited from Object)

Static methods ​

MethodDescription
IsClassAReturns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
SafeCastSafeCast makes sure the input object is of a class that can be cast into spAnimationTrackCollection, and if this is the case, returns the object cast into spAnimationTrackCollection. (Inherited from Object)

Properties details ​

Name ​

The name of the AnimationTrackCollection object. (Inherited from Object)

Methods details ​

AddAnimationTrack ​

Adds an AnimationTrack object to the collection. The handle refer to the AnimationTrack until it is removed from the collection.

AddObject ​

Adds an object to the collection. The handle refers to the object until the object is removed from the collection again.

AddObjectSorted ​

Adds an object to the collection, as AddObject, but sorts the object into the collection based on its name.

AddObserver ​

Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)

FindAnimationTrack ​

Finds and returns AnimationTrack by name or nullptr.

FindAnimationTrackByNodeGUID ​

Finds and returns AnimationTrack by nodeGUID or nullptr.

FindObject ​

Finds a named object in the collection. The first object with this name is returned. The search is case-sensitive.

GetAnimationTrack ​

The object the handle is referring to.

GetClass ​

Get the name of the AnimationTrackCollection class. (Inherited from Object)

GetFirstItem ​

Returns the start of the collection. The handle returned refers to the first object in the collection. If the handle is null, then the collection is empty.

GetItem ​

Returns the handle of the i:th item.

GetItemAsObject ​

Returns the object of the i:th item.

GetItemCount ​

The number of items in the collection.

GetItemsObject ​

The object the handle is referring to.

GetNextItem ​

Returns the handle to the next item in the collection. Use GetFirstItem and this method to step through the collection. If the return is null, the end of the collection has been reached.

GetNextItemAsAnimationTrack ​

Returns the object of the next item.

IsA ​

Returns true if AnimationTrackCollection is a or is a descendant of the class named as the type parameter. (Inherited from Object)

IsAnimationTrackInCollection ​

Returns true if the object is in the collection.

IsAnimationTrackWithNodeGUIDInCollection ​

Returns true if a track for the given node GUID is in the collection.

IsItemInCollection ​

Returns true if the item is in the collection.

IsNull ​

Returns true if the AnimationTrackCollection object is invalid. (Inherited from Object)

IsObjectInCollection ​

Returns true if the object is in the collection.

IsSameObjectAs ​

Returns true if the AnimationTrackCollection object is valid. (Inherited from Object)

NonNull ​

Returns true if the AnimationTrackCollection object is valid. (Inherited from Object)

PrintInfo ​

Prints the content/info of the AnimationTrackCollection object to the log. (Inherited from Object)

RemoveAllItems ​

Removes all items from the collection.

RemoveAnimationTrack ​

Removes an animation track from the collection. Only the first occurrence of the object is removed.

RemoveItem ​

Removes an item from the collection. The handle returned is the first item after this item that is in the collection. If the return is null, the item was the last item in the collection. Warning! The handle is invalid after the removal of the object.

RemoveObject ​

Removes an object from the collection. Only the first occurrence of the object is removed from the collection.

RemoveObserver ​

Removes a previously added observer object. (Inherited from Object)

Static methods details ​

IsClassA ​

Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)

SafeCast ​

SafeCast makes sure the input object is of a class that can be cast into spAnimationTrackCollection, and if this is the case, returns the object cast into spAnimationTrackCollection. (Inherited from Object)