This script scales a child layer based on the parent layer's scale, by placing an expression on the child layer's scale property. It gets the child layer's scale value, then loops through the parent layers and multiplies the child's scale by 100 divided by each parent's scale, to calculate the final scale needed to maintain proportions. The adjusted scale value is then returned.
This script scales a child layer based on the parent layer's scale, by placing an expression on the child layer's scale property. It gets the child layer's scale value, then loops through the parent layers and multiplies the child's scale by 100 divided by each parent's scale, to calculate the final scale needed to maintain proportions. The adjusted scale value is then returned.
This script scales a child layer based on the parent layer's scale, by placing an expression on the child layer's scale property. It gets the child layer's scale value, then loops through the parent layers and multiplies the child's scale by 100 divided by each parent's scale, to calculate the final scale needed to maintain proportions. The adjusted scale value is then returned.