Skip to main content
Participant
May 27, 2022
Answered

Need (hopefully) simple expression assistance.

  • May 27, 2022
  • 1 reply
  • 287 views

I have a particle effect (CC Particle System II) / solid layer where the Producer from the particle effect has the Position parented to the position of another layer. It's using this expression:

thisComp.layer("object.png").transform.position

However, I need to MOVE the particle effect slightly in X,Y space. Is it possible to modify the above expression so that the result offsets the particle effect by (-100,-200) or whatever I choose? I've been going through all kinds of websites and expression tutorials but can't figure out how to make this work.

I've already tried separating the X and Y position values in the object.png layer... but the Position value in CC Particle System II doesn't allow you to split the X and Y values. 

Any ideas? Thanks!

This topic has been closed for replies.
Correct answer Dan Ebberts

Try this:

thisComp.layer("object.png").transform.position + [-100,-200]

1 reply

GPBAuthor
Participant
May 27, 2022

Also, before someone says this... I can't just move the particle effect / solid layer (or anchor point) because it ends up clipping the effect. I need to move the Producer from the particle effect in order to achieve what I want. 🙂

 

Adam24585301qycn
Inspiring
May 27, 2022

maybe post a copy of the project ( a reduced version ) and someone will likely help