Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Global Variables

  • Posted by Mackie John on November 29, 2020 at 5:11 pm

    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.

    Mackie John replied 5 years, 5 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy