app.project.item(index).layer(index).setParentWithJump()
app.project.item(index).layer(index).setParentWithJump(newParent)
Description
Sets the parent of this layer to the specified layer, without changing the transform values of the child layer.
There may be an apparent jump in the rotation, translation, or scale of the child layer, as this layer’s transform values are combined with those of its ancestors.
If you do not want the child layer to jump, set the parent attribute directly. In this case, an offset is calculated and set in the child layer’s transform fields, to prevent the jump from occurring.
Parameters
ne wPar ent Optional, a layer object in the same composition. If not specified, it sets the parent to None.
Returns
Nothing.