isAncestorOf

Description

This function returns true or false to identify if a layer is the parent of another layer.

Syntax

Timeline.isAncestorOf(parentLayerIdx, layerIdx);

Arguments

parentLayerIdx, layerIdx

parentLayerIdx: This is an integer that represents a layer that has nested sub-layers (children) in the Timeline.
layerIdx: This is an integer that represents a layer in the Timeline.

Related Topics 

Timeline