Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions scripting question: within my script I’m trying to link a leyer property to a slider control… but I’m failing miserably

  • scripting question: within my script I’m trying to link a leyer property to a slider control… but I’m failing miserably

    Posted by Paul Riccardi on August 25, 2015 at 1:57 am

    Within my script I’ve been able to create a layer, add a mask, add a slider control, rename and set a value to the slider. Now where I’m getting stuck is I’m trying to create a scripted expression to link the property maskFeather to the slider and it’s not working. Why I’m stumped is, I can get the script add an expression like time*15, or a wiggle but when I try to link it to the slider control i get an error “unable to execute script at line 55. Expected:;

    Here what I’ve got so far.

    var curExp1 = “effect(“Feather”)(“Slider”)”;

    curLayer.property(“Masks”).property(“Mask 1”).property(“maskFeather”).expression = curExp1;

    Help?

    Paul Riccardi replied 11 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 25, 2015 at 2:43 am

    You can’t do nested double quotes. Try this:

    var curExp1 = ‘effect(“Feather”)(“Slider”)’;

    Dan

  • Paul Riccardi

    August 25, 2015 at 4:38 pm

    You are the man Dan. Worked perfectly!

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