Dear Dan,
thanks for the tip,
I will report if it does the trick.
Maybe you can also help me with understanding how to approach this problem:
I have set up an expression that will forward the position of a layer
from one side of the comp to the other, if the layer position value is smaller or greater than the comp width.
But the problem comes when it travels like this multiple times
The expression is not self aware,
it is returning a new value to the layer position.
And this new value is not affected by the expression again and again.
In this case:
when the expression does its thing – the layer position goes from 0 to 3072, that is the right end of the comp
If the layer would then go again to the left end of the comp, so the new value is -3072 (value in yellow)
and the value affected by the expression is 0 (value in red)
The expression will not work on the red value.
How could I overcome this limit of the expression?
My best idea is to have the if clause for every instance
0, -3072, -6144.. and so on?
Is it possible to have it address the ‘red value’ in some way?
Thank you!!
X=position[0];
Y=position[1];
if (X <= 0)
{
[X+thisComp.width,Y];
}
else if (X >= 3072)
{
[X-thisComp.width,Y];}
else
[X,Y]