Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Predicate Expression Error

  • Predicate Expression Error

    Posted by Josh Kurz on July 16, 2009 at 10:18 pm

    I’m trying to link the opacity of a layer in Comp1 to a slider control of another layer in another comp (Comp2). Comp1 is inside Comp2.

    I keep getting this error:
    Function (predicate expression) cannot work with this class Expression disabled.

    I have even tried creating a slider control on the layer in Comp1 and linking that to the slider control in Comp2 but I get the same error.

    Is it not possible to link the opacity of a layer to a slider control in another comp.

    Not sure what I am doing wrong. Any help is greatly appreciated.
    Thanks
    -Josh

    Josh Kurz replied 17 years, 1 month ago 2 Members · 8 Replies
  • 8 Replies
  • Dan Ebberts

    July 16, 2009 at 10:41 pm

    I just tried it and it works fine. There must be something else going on. I’m not familiar with that error message, but if I had to guess I’d say that AE might be telling you that you’re trying to create an expression that loops back on itself (possibly through another expression somewhere). Are there other expressions in play here? Also, what’s the exact text of the expression that’s generating the message?

    Dan

  • Josh Kurz

    July 16, 2009 at 10:52 pm

    Hmmm.
    So, I have a comp called “Testimonial_PTI” in that comp I have one precomp layer called, “PICT1” and another layer called “Timing Control 3”

    There are two layers within “PICT1” I would like to link the opacity of one of those layers to a slider called “Transition” on “Timing Control 3” I’ve added the code below.

    Not sure why this would affect anything but “PICT1” is linked to “Timing Control 3” with a nominalDur expression.

    Hope that’s not too confusing.

  • Dan Ebberts

    July 16, 2009 at 10:58 pm

    Did you mean to post some code? What’s a nominalDur expression?

    Dan

  • Dan Ebberts

    July 16, 2009 at 11:02 pm

    Also, what’s the expression that links the PICT1 layer to Timing Control 3? What property is it applied to?

    Dan

  • Josh Kurz

    July 16, 2009 at 11:09 pm

    Well I posted it in the “Please post Expressions Code in the box below” box but it didn’t show up I guess, sorry.

    Here’s the code:
    comp.(“Testimonial_PTI”).layer(“Timing Control 3”).effect(“Transition”)(“Slider”)

    Here’s the nominalDur expression on the precomp itself:
    p=thisComp.layer(“Timing Control 3”).effect(“Timing Control”)(“Slider”);
    nominalDur=6;
    valueAtTime(nominalDur*(p/100))

  • Josh Kurz

    July 16, 2009 at 11:10 pm

    It’s applied to position, rotation, gaussian blur, and opacity.

  • Dan Ebberts

    July 16, 2009 at 11:22 pm

    Ah, OK. You’ve got an extra period in there (after “comp”). Try this:

    comp(“Testimonial_PTI”).layer(“Timing Control 3”).effect(“Transition”)(“Slider”)

    Dan

  • Josh Kurz

    July 16, 2009 at 11:25 pm

    Oh Lord.
    Thanks, it works.

    Sorry for wasting your time on this one.

    Thanks again,

    -Josh

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