Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Re: After Effects Expressions;Chapter 3, Comp 16

  • Re: After Effects Expressions;Chapter 3, Comp 16

    Posted by John Cuevas on August 4, 2010 at 1:46 pm

    So as to not have to come here for help quite so often, I’ve been working my way though Marcus Geduld’s book. I’ve gotten to this particular composition, which he has the expression not enbabled in the downloadable projects, when you enable the expression I get the folowing error:

    Bad method arguements: propertyIndex can’t be used on this Property.

    Instead of the expression he used, I recreated it, using a pickwhip instead of the .param(propertyIndex-2). I was wondering if it’s possible to do the way Marcus suggests in the book.

    Johnny Cuevas, Editor
    http://www.thinkck.com

    Rich Cho replied 15 years, 3 months ago 3 Members · 4 Replies
  • 4 Replies
  • John Cuevas

    August 4, 2010 at 1:50 pm

    Sorry, I tried to upload a screen shot of the effect and expressions, but didn’t work.

    Expression that works:
    4 color gradient

    Point2: effect(“4-Color Gradient”)(“Point 1”).valueAtTime(time – .5)

    Does not work:
    Point 2: effect(“4-Color Gradient”).param(propertyIndex – 2).valueAtTime(time – .5)

    Johnny Cuevas, Editor
    http://www.thinkck.com

  • Dan Ebberts

    August 4, 2010 at 4:11 pm

    Try it this way:

    effect(“4-Color Gradient”).param(thisProperty.propertyIndex – 2).valueAtTime(time – .5)

    Dab

  • John Cuevas

    August 4, 2010 at 5:11 pm

    Thank you Dan, works now.

    Since I saw that Marcus mentioning you in his book I just wanted to take the time to thank both you and Marcus for the incredible resource that is “After Effects Expressions”. I’ve been using AE since COSA made it, but have never used any expressions besides the pickwhip since they were introduced.

    I’m now reading it for the second time and I’m really starting to understand this powerful tool in AE(even managed to write a few expressions on my own—that worked!).

    Just wanted to know how grateful I am to Marcus for writing this book(and your contributions as well).

    Thanks again,

    Johnny Cuevas, Editor
    http://www.thinkck.com

  • Rich Cho

    May 5, 2011 at 9:45 pm

    Ran into same problem. Glad I was able to find solution here.
    Thanks Dan!

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