Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Toggle on/off multiple checkbox Controllers

  • Toggle on/off multiple checkbox Controllers

    Posted by Kyle Griffin on March 29, 2021 at 7:14 pm

    Hey folks, I have a question about some expressions I am trying to figure out.

    I have a character rig that I want to be able to use checkbox controllers to turn on and off their opacity – I have that figured out with this expression:

    if ( thisComp.layer(“Front Hand Control”).effect(“Hand 01”)(“Checkbox”) > 0 ) {100} else {0}

    However, I have three different checkbox controls and would like for them to be able to be toggled simultaneously, for example:

    If I toggle on the First hand checkbox I would like the other checkboxes to turn off.

    Then if I go to the next hand shape control and toggle that on, I would like the rest to turn off – like using a switch template.

    I cant use time remapping and precomp the entire hand comps since there is animation built into the hands.

    Image attached for clarification

    If there is an easier way to do this I would love to know – for instance, is there a way I could have something be visible based on the position of another layer?
    Thanks!

    Kyle Griffin replied 5 years, 5 months ago 3 Members · 7 Replies
  • 7 Replies
  • Dan Ebberts

    March 29, 2021 at 7:29 pm

    Trying to simulate radio buttons with interconnected checkboxes just leads to frustration. You’d be better off using a menu control to select 1 of n.

  • Yoan Boisjoli

    March 29, 2021 at 7:30 pm

    Hi Kyle,

    If you want to have many instances for your characters’ hand, maybe you could use a dropdown menu and simply have a “combo” of opacity for each selection of the menu?

    For instance, if the first menu of the dropdown is selected then left hand is 100% and right hand is 0%. And the best part is that dropdown menus are keyframable.

    Does that make sense?

  • Kyle Griffin

    March 29, 2021 at 7:35 pm

    Thanks for the response, Dan.
    I figured I was going down a path of frustration.
    What do you mean by menu controls? I am not too familiar with them.

  • Kyle Griffin

    March 29, 2021 at 7:36 pm

    Thanks for the replay Yoan, I am not sure I follow you however. What do you mean by dropdown menus?

  • Dan Ebberts

    March 29, 2021 at 7:42 pm

    Effect > Expression Controls > Dropdown Menu Control. You can customize the number of items and their names, letting you select 1 of n mutually exclusive options.

  • Yoan Boisjoli

    March 29, 2021 at 7:45 pm

    Dropdown menus are pretty cool.

    Here’s a quick tutorial about it!

    https://www.youtube.com/watch?v=nPTNtwSx9SE

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • Kyle Griffin

    March 29, 2021 at 8:06 pm

    That’s perfect, Thanks!

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