ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

missing 'orientation' property?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
David Cabestany
missing 'orientation' property?
on Mar 27, 2017 at 5:20:29 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];


Return to posts index

Dan Ebberts
Re: missing 'orientation' property?
on Mar 27, 2017 at 5:44:49 pm

Obvious question--is layer(2) 3D?

Dan



Return to posts index

David Cabestany
Re: missing 'orientation' property?
on Mar 27, 2017 at 6:34:16 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.


Return to posts index


Dan Ebberts
Re: missing 'orientation' property?
on Mar 27, 2017 at 6:49:19 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



Return to posts index

David Cabestany
Re: missing 'orientation' property?
on Mar 27, 2017 at 6:55:22 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.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]