Evenly distribute layers while being aware of their alpha?
Posted: January 5th, 2012, 1:54 pm
Hello,
I have 5 prerendered Layers (Letters) building the word "RIDER" in my Comp. Each one of them 500x500 pixel resolution with an alpha channel.
I use this expression on their position properties to distribute them on the x-axis (like tracking actual text) with a slider controller (starting Layer has index 2):
transform.position + [(thisComp.layer("Master Controller").effect("Tracking")("Slider")*(index-2)),0]
Now I get an issue with an uneven distribution, because the expression will change the Position of the actual layer (Anchorpoint in the middle), while the rendered Letters have different widths (the "R" is wider than "I" f.e.).
Is there a way to subtact each layers alpha-width before and after the RGB-pixels (all Letters are centered). Can an expression then distribute the Layers, based on their new calculated width?
PS: The with of the prerendered Layers has to be fixed 500x500 unfortunately...
I hope that i could make myself clear here, and that somebody can help my out with an ingenious solution to my issue
Thanks in advance!
I have 5 prerendered Layers (Letters) building the word "RIDER" in my Comp. Each one of them 500x500 pixel resolution with an alpha channel.
I use this expression on their position properties to distribute them on the x-axis (like tracking actual text) with a slider controller (starting Layer has index 2):
transform.position + [(thisComp.layer("Master Controller").effect("Tracking")("Slider")*(index-2)),0]
Now I get an issue with an uneven distribution, because the expression will change the Position of the actual layer (Anchorpoint in the middle), while the rendered Letters have different widths (the "R" is wider than "I" f.e.).
Is there a way to subtact each layers alpha-width before and after the RGB-pixels (all Letters are centered). Can an expression then distribute the Layers, based on their new calculated width?
PS: The with of the prerendered Layers has to be fixed 500x500 unfortunately...
I hope that i could make myself clear here, and that somebody can help my out with an ingenious solution to my issue

Thanks in advance!