Using the "has_parent()" functionYou can now indicate in your expression that you want to retrieve a parent layer's property by using the "has_parent()" function. You can also allow for the possibility that there may not be a parent layer at present. For example, the following expression indicates that the layer to which you apply it would wiggle based on the position of the layer's parent. If the layer has no parent, then it would wiggle based on its own position. If the layer is parented later, then its behavior will change at that point: idx = index; if (has_parent) { idx = parent.index; } this_comp.layer(idx).position.wiggle(5, 20) |