Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expression problem, I need to understand why

  • Expression problem, I need to understand why

    Posted by Erick Wilczynski on August 17, 2012 at 3:45 am

    This expression is not working for me and I know it should be. Can anyone tell me what i’m doing wrong. In the comp I’m using Particular to trace masks and this expression is supposed to prevent the lines between masks.

    Adobe gives me this error:

    After Effects warning: Expected: ;
    Expression disabled.

    Error occured at line 1.
    Comp: ‘name’
    Layer: 2 (‘particular’)
    Property: ‘Particles/sec’

    I see where the error is but I don’t understand why there is an error.

    It’s based off of this tutorial: ae.tutsplus.com/tutorials/motion-graphics/quicktip-fast-and-easy-text-writing-with-particular/
    He uses the same expression flawlessly and I used it identically.

    -E
    -vimeo.com/36013051 (reel)
    -RambozMediaGroup.com (production house)

    Darby Edelen replied 13 years, 9 months ago 3 Members · 4 Replies
  • 4 Replies
  • Darby Edelen

    August 17, 2012 at 4:31 am

    You didn’t include the expression you’re talking about in your post.

    Darby Edelen

  • Vishesh Arora

    August 17, 2012 at 5:16 am

    MR. Wilczynski
    I have tried this for you and I got the solution

    While Typing the first line
    “x=…..” x is a small cap letter

    But second time He types Capital x : “X”
    So just change the Small cap “x” “capital “X” in the first line and it will work 🙂

    Vishesh Arora
    VFX and MOtion Graphics Artist

    https://digieffects.wordpress.com

  • Erick Wilczynski

    August 18, 2012 at 6:45 am

    Sorry. Here is the expression X = effect(“Checkbox Control”)(“Checkbox”) if (X = = 0)0 else (effect(“Particular”)(“Particles/sec”))

    It’s still not working for me.

    -E
    -vimeo.com/36013051 (reel)
    -RambozMediaGroup.com (production house)

  • Darby Edelen

    August 19, 2012 at 7:08 pm

    [Erick Wilczynski] “Sorry. Here is the expression X = effect(“Checkbox Control”)(“Checkbox”) if (X = = 0)0 else (effect(“Particular”)(“Particles/sec”))”

    You have to separate the different operations with semi-colons like this:


    X = effect("Checkbox Control")("Checkbox");
    if (X == 0) 0;
    else (effect("Particular")("Particles/sec"));

    Also, I’m quite sure that you’ll need the == operator without any spaces in between the =’s. == (comparison) is a wholly different operator than = (assignment) and two =’s separated by a space may be seen as two assignment (=) operators instead of one comparison (==) operator.

    -D

    Darby Edelen

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