Hey, i need help about parenting layers to a null with a delay
Hey everyone. I am trying to parent several shapes to a null with a delay between them. So i wish to control several layers with only one null.
I asked in AE discord channel and someone helped me with this code
- p = thisComp.layer("Control");
- delay = thisComp.layer("Control").effect("Delay")("Slider")/100;
- value+p.transform.position.valueAtTime(time-delay);
For this code, i have a null named Control with a slider control named Delay. I used this code on shape's position.
This code works but there is a kinda big problem. When i use the expression, my layer moves somewhere else and start to follow my null from that point. I create an example project to explain.
This is what happens when the expression disabled

And this is what happens when the expression enabled

I am not sure how can i fix this / is it possible to fix. I hope someone can help me : D
(or maybe another way that i can parent layers to a null with delay : )
Thank you for reading.
