Skip to main content
Participant
January 31, 2020
Question

It's almost doing what I want.

  • January 31, 2020
  • 2 replies
  • 691 views

Hey,

I'm working on a world map with text in it. I want the dot with the line to stay on the same position, but the scale of it needs to be the same. So I can zoom out and the text stays readable. 

 

I parented only the position of the dot with the worldmap. The problem is that it takes of course the same position so the dot moves to the ancor point of the world map. I need a couple of dots and lines on different positions on the world map so I can't change the ancor point of the world map to the position of the city.

 

I tried something with valeu+thisComp.layer("Wereldmap").transform.position or 300+valeu+thisComp.layer("Wereldmap").transform.position

But when I zoom out, the dot doesn't stays on the same spot on the world map.

 

Here is my work till now, ony the dot is not in the right position, but on the ancor point of the map:

https://youtu.be/9S6dQ9d4AxY

 

Can someone help me?

 

Thanks in advance,

 

Martijn

This topic has been closed for replies.

2 replies

Community Expert
January 31, 2020

I would make the layers 3D and animate the camera. All you have to do is make the map, the shape layer with the dot and the line the text layer and a null 3D layers, place the null over dot so the Anchor Point is in the center of the dot, parent the text layer and the shape layer to the null. As long as the shape layer and the text layer is the size you want them to be you are all set. To keep the text and shape layer the same size when you move the camera in and out just add this expression to the Null's Scale property:

C = thisComp.activeCamera;
CP = fromWorld(C.toWorld([0,0,0]));
L = thisLayer
LP = fromWorld(L.toWorld(anchorPoint));
d = length(CP, LP);
z = C.zoom;
r = d/z
value * r

Now you can move the camera all around the map and the callout will always stay the same size. It's a lot easier to get a good looking animation if you move a camera around than if you animate scale. This is what the comp looks like, and you'll notice that I have saved this scale expression as one of my 200+ animation presets. I use it all the time.

Participant
January 31, 2020

Thanks for your replies. Here is an example when I add another 'city' when the ancor point are not on the same spot as the acorpoint of the world. Can't change the position because it is linked to the position of the world. SO I changed the ancorpoint of the new city to set it on another spot. But then this happends... ehh.. difficult to explain...

 

https://youtu.be/qLyMmrKUiFI

 

Thanks Rick_Gerard, I will try that monday 😉

Mugen777
Inspiring
January 31, 2020

You should do what Rick_Gerard said. 

Basically, you will create the whole map with your dots on places, then move your camera to create your movement. 

It is not as hard as it looks, definitely give it a shot. 

Mugen777
Inspiring
January 31, 2020

I can't understand, you are saying "But when I zoom out, the dot doesn't stay on the same spot on the world map." but in the video, the dot stays on the same spot. Are you talking about scale? If so, you can try to make it constant by using an expression like [100,100] so it won't change from %100.