Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Toggle transparency

  • Toggle transparency

    Posted by Jace Bradley on April 6, 2022 at 12:59 pm

    Hello! I am new member 🙂

    I already have a question.

    I created a simple UI window with a button to toggle on off transparency.

    I ‘m just learning. When I search the Scripting guide I see;

    app.project.transparencyGridThumbnailsapp.project.transparencyGridThumbnails

    First, what’s Boolean; read/write. I thought Boolean was true and false or is read/right the same thing?

    How can I tell the function to turn the transparecy on and off?

    Thank you.

    Sean Walkup replied 4 years, 4 months ago 3 Members · 2 Replies
  • 2 Replies
  • Tomas Bumbulevičius

    April 9, 2022 at 5:20 pm

    Hey Jace. What object transparency we are talking about? Where and what you want to toggle on/of? Is it a layer in the composition? If so, do you select that manually, or how it will be decided what to turn on/off?

    Or are you talking about transparency in they GUI?

  • Sean Walkup

    April 12, 2022 at 1:38 pm

    Not sure I completely understand your need, but maybe this will help.

    Here is how to turn another layer on and off with a checkbox expression control. I use this all the time to control dozens of things in mogrts for Premier.

    In this example, I have an empty shape layer named Controllers that contains a checkbox. I have another shape layer called Square, and in its opacity, I have this:

    var cbx=thisComp.layer(“Controllers”).effect(“Checkbox Control”)(“Checkbox”);

    if(cbx>0) {100} else {0}

    Hope this helps.

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