Skip to main content
Lucas Greek
Known Participant
February 25, 2022
Question

An expression for positioning an element

  • February 25, 2022
  • 2 replies
  • 252 views

Hello,

I’ve got a problem with creating a proper expression when it comes to a position of an image.

I do have this expression placed in position: thisComp.layer("TA1").transform.position

 

 

My goal is adding to this expression (thisComp.layer("TA1").transform.position)

An extra line which can move the whole image by 200 pixels down

 

I don’t know what to type in order to make it work or how to solve it. I’ve tried to do my research on expressions but so far unable to find any answers myself.

 

Thank you in advance

This topic has been closed for replies.

2 replies

OussK
Community Expert
Community Expert
February 26, 2022

You didn't mention in which direction you want to move the image, and since I notice you use a 3D layer so may you want to move the image in Z position in this case, you need to add one more value to Dan's solution and the expression should look like this 

p = thisComp.layer("TA1").transform.position;
p + [0,0,200]

 

Dan Ebberts
Community Expert
Community Expert
February 26, 2022

This should work (if I understand what you're after):

p = thisComp.layer("TA1").transform.position;
p + [0,200]