Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions missing ‘orientation’ property?

  • missing ‘orientation’ property?

    Posted by David Cabestany on March 27, 2017 at 5:20 pm

    Anyone knows why I’m getting a missing layer/property error when I try this expression?

    Error says:
    property or method ‘orientation’ in Class ‘Group’ is missing or does not exist. It may have been renamed, etc. etc.

    Any help will be greatly appreciated.

    C=comp("PANOS");
    ctrl=C.layer(2).transform.orientation[0];
    L=C.layer(thisComp.name);

    k1=C.layer(2).transform.orientation[0].key(1).value;
    k2=C.layer(2).transform.orientation[0].key(2).value;

    x=ctrl.valueAtTime(time+L.startTime);
    s=linear(x,k1,k2,0,160);
    [100,s];

    David Cabestany replied 9 years, 5 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    March 27, 2017 at 5:44 pm

    Obvious question–is layer(2) 3D?

    Dan

  • David Cabestany

    March 27, 2017 at 6:34 pm

    The layer with the expression is 2D, the other is 3D, I just noticed that, thanks. However I turned both layers into 3D and it didn’t work either.

    The new error I’m getting is ctrl.valueAtTime is not a function.

  • Dan Ebberts

    March 27, 2017 at 6:49 pm

    You have to do the array indexing after valueAtTime(), so it would be like this:

    .
    ctrl=C.layer(2).transform.orientation;
    .
    .
    .
    x=ctrl.valueAtTime(time+L.startTime)[0];
    .
    .

    Dan

  • David Cabestany

    March 27, 2017 at 6:55 pm

    I could swear I have used it with the array before the function.
    As always you are right. Thanks a lot for your invaluable help.

    Best,David.

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