Copied!
May 18, 2020
After Effects script
Get the layer of the selected property
It takes one property argument, and returns the layer of which this property belongs to.

Expression
function LayerParentOfProperty(property) {
try {
return property.propertyGroup(property.propertyDepth);
} catch (e) {
return;
}
}