-
Keeping linked scale positive
Hi,
I have a large stack of comps / layers whose scale parameters are linked to that of another layer in another comp, relative to their layer order / index.
My current expression:
comp(“Comp Name”).layer(“2nd Comp Name”).transform.scale-index
The link works fine, of course-but, once the scale of the linked layer goes below half the number of indexed layers the scale returns a negative value. How can I return all negative values as 0? Or, better yet, is it possible to incrementally scale down such that only the last indexed layer reaches 0 when the linked layer does? Let’s assume there are 100 indexed layers. Hopefully that makes sense.
I’ve looked at the Math.abs and Math.max operators but can’t quite work out how to implement them here.
Thanks in advance.