ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Attaching objects to a moving surface

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mimmi Muskos
Attaching objects to a moving surface
on Sep 9, 2015 at 11:14:15 am

Hi!

I am trying to attach a needle to a moving map, (the map is zooming out, changing position and is tilting at the X and Z axis.) I want the needle to stay the same size (not shrink in proportion to the map) and stay at it´s position (city) on the map. I don´t want it to tilt with the map, it´s angle should stay the same. (I attached an example of the map below)

Example:





There are two needles in my example. The upper needle is acting just like I want to, staying the same size, staying in the same position and not tilting along with the map. The lower needle is where I´m starting to get problems.
I think the upper needle is acting the way I want to because it is placed on the anchor point of the map. How should I go about fixing the other needles, that won´t be placed on the anchor points?

Thank you for your help!

Regards,
Mimmi


Return to posts index

Dave LaRonde
Re: Attaching objects to a moving surface
on Sep 9, 2015 at 9:31:17 pm

How did you "attach" them to the map? Parenting?

Dave LaRonde
Promotion Producer
KGAN (CBS) & KFXA (Fox) Cedar Rapids, IA


Return to posts index

Mimmi Muskos
Re: Attaching objects to a moving surface
on Sep 11, 2015 at 8:10:01 am

Yes, I attached them by parenting them to the position of the map.

/Mimmi Muskos


Return to posts index


Michael Szalapski
Re: Attaching objects to a moving surface
on Sep 10, 2015 at 1:51:54 pm

Expressions to the rescue!
This expression makes one layer follow another even if it's been parented.

Put nulls where you would like the pins to be.
Parent them to the moving layer.
Apply this expression to the position of a pin layer:
L = thisComp.layer("Null 1");
L.toWorld(L.anchorPoint);

For what follows L = on the first line, you can just pick whip to the null layer you want the pin to follow.

- The Great Szalam
(The 'Great' stands for 'Not So Great, in fact, Extremely Humble')

No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.


Return to posts index

Mimmi Muskos
Re: Attaching objects to a moving surface
on Sep 11, 2015 at 8:12:11 am

Thank you so much Michael!

I will definitely try this expression!

/Mimmi Muskos


Return to posts index

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