Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Class ‘Layer’ has no property or method PROBLEM!

  • Class ‘Layer’ has no property or method PROBLEM!

    Posted by Nate Hurwitz on December 24, 2007 at 6:09 pm

    Hey I am using the expression:

    x=this_comp.layer(1)
    [x.position[0], x.position[1]];

    this is only within the position property. I have 2 solid layers and this expression is on the second layer, but I am getting this error:

    “Class ‘Layer’ has no property or method named ‘x'”

    Is this a legal way to declare a variable, if not what am I doing wrong? Thanks a ton in advance and happy holidays!

    Nate Hurwitz replied 18 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 24, 2007 at 11:14 pm

    I think you just need a semicolon at the end of the first line.

    Dan

  • Nate Hurwitz

    January 3, 2008 at 1:27 pm

    Thank you Dan. I know it’s a late reply. I am a javascript guy and I guess my mistake was guessing that motionscript was almost the exact same thing as javascript…but there are some differences!

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