Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions syntax error where?

  • syntax error where?

    Posted by Mark Samuels on May 18, 2014 at 8:52 am

    Im rigging a puppet and getting an error when I put the code –
    Error at line 1 in property Position of layer 2 (CheekL) in comp ‘puppet’. Syntax error.

    I have gone over the code but cannot see any error. Can someone please help. Maybe Im too tired and can’t see it? Im following a tut and it looks exactly the same to me.

    Blink=comp(“MainHeadv1.5”).layer(“Head Controls”).effect(“Blink”)(“Slider”);

    Mouth=comp(“MainHeadv1.5”).layer(“Head Controls”).effect(“Mouth”)(“Slider”);

    Smile=comp(“MainHeadv1.5”).layer(“Head Controls”).effect(“Smile”)(“Slider”);

    EyeBrows=comp(“MainHeadv1.5”).layer(Head Controls”).effect(“EyeBrows”)(“Slider”);

    Anger=comp(“MainHeadv1.5”).layer(“Head Controls”).effect(“Anger”)(“Slider”);

    Jaw=comp(“MainHeadv1.5”).layer(“Head Controls”).effect(“Smile”)(“Slider”);

    Cheeks=comp(“MainHeadv1.5”).layer(“Head Controls”).effect(“Cheeks”)(“Slider”);

    PosX=transform.position[0]+Smile;

    PosY=transform.position[1]-Smile-Cheeks;

    [PosX,PosY];

    Dan Ebberts replied 11 years, 12 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    May 18, 2014 at 3:09 pm

    Check your quotation marks. It looks like a lot of them are curly quotes (which won’t work) and there’s one missing in the 4th line.

    Dan

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