Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions [HELP] Add a conditional to a Slider control in Script UI?

  • [HELP] Add a conditional to a Slider control in Script UI?

  • Vincenzo Imbimbo

    August 29, 2022 at 8:13 am

    Hello guys, i created a slider UI to control the opacity of my layers, and it’s working fine, but there’s a problem, if the property has a keyframe (the stopwatch enabled) the slider control stops working. I’m trying to make it work in both scenarios, if there’s no keyframes then change the opacity value of my layers, and if there’s a keyframe i want to create a new keyframe at current time (where the CTI is located). Any solution to this?

    Something like this:
    If (thisproperty) has no keyframes {

    change value of property


    change value and add a keyframe at current time

  • Andrei Popa

    August 29, 2022 at 8:55 am

    I think this may help

    if (thisProperty.numKeys == 0){
Viewing 1 - 2 of 2 posts

Log in to reply.

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