Cicode Programming Reference > Cicode Function Categories > Display Functions Introduction > DspGetParentAn

DspGetParentAn

Gets the parent animation number (if any), for the specified animation number. AN animation point will have a parent animation point if it corresponds to an object in a group.

Syntax

DspGetParentAn(AN)

AN:

The animation-point number.

Return Value

The parent animation point number (AN). If no parent animation exists or an invalid animation number is passed, 0 (zero) is returned.

Related Functions

DspGetAnCur

Example

// Get the parent animation for object 89 (part of a symbol set)
AN = DspGetParentAn(89);

See Also

Display Functions