Layer.parent

Function/Meaning
Parent layer
Type
Layer class property (read/write)
Description
Represents the parent layer object.
A value can also be set. Setting a value makes this layer a child of that layer.
It cannot become a child of a layer belonging to a different window or a different primary layer, nor can it become a child of itself or its own descendants.