Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions 3d layer Y rotation always flat

  • 3d layer Y rotation always flat

    Posted by Ilya Sire on August 7, 2018 at 6:37 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

    Ilya Sire replied 7 years, 9 months ago 3 Members · 4 Replies
  • 4 Replies
  • Kalleheikki Kannisto

    August 8, 2018 at 6:07 am

    Sounds like you’re talking about this effect:

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

    Kalleheikki Kannisto
    Senior Graphic Designer

  • Ilya Sire

    August 8, 2018 at 10:04 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.

  • Dan Ebberts

    August 8, 2018 at 4:35 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

  • Ilya Sire

    August 8, 2018 at 4:52 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

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