Forum Replies Created

  • Crystal Qn

    March 4, 2022 at 4:17 am in reply to: X rotation affects toWorld/toComp properties

    boxTop = thisLayer.sourceRectAtTime(time).top;

    boxHeight = thisLayer.sourceRectAtTime(time).height;

    boxLeft = thisLayer.sourceRectAtTime(time).left;

    boxWidth = thisLayer.sourceRectAtTime(time).width;

    [boxLeft + boxWidth/2, boxTop + boxHeight/2 ];
    —————

    Been fiddling and I stumbled the solution to my issues, I just had to add the 3D layer’s anchorPoint into toWorld() instead of adding on top of it

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