ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

3d layer Y rotation always flat

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ilya Sire
3d layer Y rotation always flat
on Aug 7, 2018 at 6:37:15 pm

Hi forum,

How can I get y rotation always look flat wherever I place the layer in comp space?

If I put the layer position in middle comp, yrotation 90 the layer should look flat. I'm not sure how to explain this. Y rotation should be more than 90 or less depending on what x position the layer place.

Please help.
Thanks,
Ins


Return to posts index

Kalleheikki Kannisto
Re: 3d layer Y rotation always flat
on Aug 8, 2018 at 6:07:46 am

Sounds like you're talking about this effect:

http://www.motionscript.com/design-guide/auto-orient-y-only.html

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

Ilya Sire
Re: 3d layer Y rotation always flat
on Aug 8, 2018 at 10:04:35 am

Thank you for reply,

I made a sample to picture my situation as below



Solid below is corrected yRotation base on Xposition to look side of the layer while Solid above yRotation all 90 degree.


Return to posts index


Dan Ebberts
Re: 3d layer Y rotation always flat
on Aug 8, 2018 at 4:35:48 pm

Try this:

w = thisComp.width * thisComp.pixelAspect;
z = (w/2)/Math.tan(degreesToRadians(19.8));
C = [thisComp.width/2,thisComp.height/2,-z];
v = toWorld(anchorPoint) - C;
180 - radiansToDegrees(Math.atan2(v[2],v[0]))


Dan



Return to posts index

Ilya Sire
Re: 3d layer Y rotation always flat
on Aug 8, 2018 at 4:52:17 pm

it worked!! Very accurate.
cant believe it so much complex than i thought.

i made one using linear(position[0], 0 ,1920, 110, 70) manually and not accurate.

Thanks Dan


Return to posts index

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