-
need to change the layer from an expression by changing the slider number
hey, i found myself in a bit of a problem here.
i have a map with countries, each country is a layer on the map. now, for example:-i’ve got the opacity of Russia layer linked to the opacity of a layer named “position 1”.
-i have another layer named “position 2”, somewhere on the timeline, at the middle of the animation.i want to put a slider where i can change the number from 1 to 2, and the opacity from Russa layer will be switched from the “position 1” layer opacity to “position 2” layer opacity.
it should be something as:
IN OPACITY PROPRETY:
The number to change = thisComp.Layer(“got a slider here”).effect(“slider”);
thisComp.layer(“position” + the number to change).transform.opacityi don’t know how to write the expression, so please, help.