-
Global Variables
What are my options of setting and using Global variables across multiple layers. I know we can assign slider to maybe a null layer and access this from all the other layer.
But what I want to achieve is to modify this value from a different layer and use it in multiple layers.
E.g, here is an expression in one of my text layers:
if (textie.split(“**”).length != 1)
{bool = true;
//do some work
}I want to share the bool = true OR it can be bool =1 with multiple other layers. I tried the below:
thisLayer.effect(“Slider Control 2”)(“Slider”).value = 1
But the above doesn’t work, it doesn’t change the value of the slider. I do understand we can expressions can only modify the variables of the layer property they are hosted in, so changing the slider property of layer1 might not be possible from an expression on layer1 opacity property.
So whats the best way here to achieve Global variables. Which can be modified and accessed from every layer property.
Sorry, there were no replies found.