-
expressions: inverting X and Y position
hello. I’m having difficulties with some expressions. Can anybody help me out please?
This is the problem I have:I have a layer in a comp that is not centred but slightly transformed to the right. Also with the height (y). Now I want to use expressions to define the new position of that layer. The amount it peaks out to the right must be inverted so it peaks out to the left with the same amount! Again also for the height.
I used this code:
thisComp.width-thisComp.layer(“fiets rit sequence.mov”).transform.position;
thisComp.layer(“fiets rit sequence.mov”).transform.position-thisComp.height;but it doesn’t work. Although, only the first rule does work. So how do I implement these 2 rules to one good one? Or am I completely wrong and do I have to use a different code?
I hope anyone can help me out because I have a deadline… 🙁
Great thanks in advance!!