Skip to main content
Yaroslavyayaya
Participant
Feb 5, 2026 12:20 AM UTC
Question

Programming in After effects

have a triangle that is attached to a controller. I need the reference point of the Turbulent displace effect parameter 'turbulence displacement' to be attached to the height point of the triangle's base only on the Y axis. I have also attached the 'turbulence displacement' parameter point to the controller only on the Y axis using the following expression:

PosB = thisComp.layer("Ball").transform.position;

xOnly = PosB[0];

X = thisComp.layer("Controller").transform.xPosition;

Y = thisComp.layer("Controller").transform.yPosition;

value = [X, Y=0]+xOnly;

1 reply

ShiveringCactus
Community Expert
Community Expert
Feb 5, 2026 10:45 AM UTC

I’m not following completely but the bottom line of your code should probably be:

 

value = [X+xOnly,0]

 

Translate