-
Fit path boundaries by scaling when comp layer is parented
Hey guys! I am thinking about approach to figure out scaling, that shape layer in a comp would be filled in the other comp’s boundaries.
Imagine a shape path, which is in a comp X [100×100] which takes unrestricted amount of space [250×250] (can be literally anything, [50×50] or [500×500], but I can’t resize it to fit inside this comp)
Then this pre-comp is added in bigger comp Y (lets say [1000×1000]) with continuous rasterization applied (to reveal path off-boundaries) and being scaled by other controller (centered!), which is parented to slider (jeez, haha!). Is there a way to figure out scaling value, in order to fit comp X within comp Y?
I thought of:
1. Taking comp X size and shape layer top left/bottom right coordinates.
2. Re-calculate its size based on the scaling in other comp.Its kind of inception of a loophole. What I am missing here is a way to calculate size scaling compensation when multiple re-parenting happens through linkage and expressions. Any ideas? Thanks a ton!