ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Very Simple but having a Brain Fart

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Andrew Persing
Very Simple but having a Brain Fart
on May 19, 2019 at 1:35:05 am

So basically I am simply trying to link a layers position to a null that does not have the same position values.

How do set this up?

Layer one(the layer I want to link to the position to the nulls position) values being 960,960
Null values being 680,720.

I felt maybe in was a linear() set up but couldn't figure it out.

Thanks for any help!


Return to posts index

Kalleheikki Kannisto
Re: Very Simple but having a Brain Fart
on May 19, 2019 at 7:01:09 am

The simplest solution is to parent the layer to the null. Which works if you're only going to be moving the null, not rotating or scaling, etc.

If you want just the position, you can use
thisComp.layer("Null 1").transform.position+[280,240]

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

Andrew Persing
Re: Very Simple but having a Brain Fart
on May 19, 2019 at 8:29:49 pm

Thank you Kalleheikki!

Makes sense how you're adding the extra difference of the value.

I have to take some expression classes or something because I understand a lot of it but some things I just don't understand the syntax and how to properly write it to make it work.


Return to posts index


Kalleheikki Kannisto
Re: Very Simple but having a Brain Fart
on May 20, 2019 at 12:24:29 pm

We've all been there. Refreshing on Javascript and going through the AE Expression Reference will get you there in a reasonably short amount of time if you have any prior programming experience.

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]