finding layers in another comp and extracting values…

Moderators: Disciple, zlovatt

Post Reply
Pete Menich
Posts: 1
Joined: February 14th, 2022, 7:48 am

I have a comp with Country names as text layers, in the correct x & y positions to match a mercator projection. Lets call this ‘CompNames’

I have another comp with each country as a text layer with there land area is part of the name. So for example; Russia,66000 or Germany,5643. Let’s call this ‘CompAreas’

What I want to do is add an expression to the scale property of the name layers in CompNames, that looks for the corresponding layer in CompAreas – (by finding the first part of the layers name string before the comma), and then uses the second part of the name string after the comma to extract the value to be used in a range mapping function.

That way I can set the scale of the names depending on the land area of the corresponding country.

So for instance, the name Russia will be big and the name ‘Portugal’ will be smaller.

Does that make sense?!

I have no idea if this is even possible.🤓

Post Reply