Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Change checkboxes & sliders on a lot of duplicated precomps from one main comp

  • Change checkboxes & sliders on a lot of duplicated precomps from one main comp

  • Philip Peterson

    April 28, 2021 at 6:00 pm

    Hello there,

    not sure if this is right in the Expressions Section or not, because it is also kind of a workflow issue, but it will probably involve some kind of expressions so I’ll post this here:

    So I’m building a template that changes dynamically based on several checkboxes and sliders. This comp is copied A LOT and these comps are placed in one Main Comp. I would like to set up some kind of “Master Controller NULL” in my Main Comp, where I can pick, let’s say Comp20, from a dropdown menu, change the checkboxes and sliders and then pick Comp12 and change the same checkboxes and sliders in my Master Controller, but this time they affect the checkboxes and sliders inside of Comp12.

    Basically I want to make it more comfortable to change things without the need to go inside every Comp, change stuff and then do that for every single Comp.

    My idea was to set up a Null in my Main Comp, add a dropdown menu, add the checkboxes and sliders and only allow the checkboxes and sliders inside of my precomps to change, if the right dropdown menu option is selected. Basically:

    sel = MainComp.dropdownmenu
    change = MainComp.checkbox
    if (sel ==2){change}
    else {value}

    Which works, as long as sel ==2. But if I change sel to something else, it jumps back to value. I tried

    {value+change} 

    but that doesn’t work.

    Is there a way to save those changes even if sel isn’t 2 anymore? Am I expecting too much from AE? Or is there an easier way that I’m not thinking of?

    Thanks!

  • Dan Ebberts

    April 28, 2021 at 6:09 pm

    Expressions don’t have memory, so you’d probably need to have separate master controls for each precomp. It sounds like a job better suited to a small script though.

  • Philip Peterson

    April 28, 2021 at 10:51 pm

    Mhm… that’s a shame.

    Thank you anyway, Dan!

Viewing 1 - 3 of 3 posts

Log in to reply.

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