google / AEUX

Editable After Effects layers from Sketch artboards
Apache License 2.0
511 stars 55 forks source link

AE import error: The positionY of the text layer in AE is higher than that in Figma #100

Open nangonghan opened 2 years ago

nangonghan commented 2 years ago

The positionY of the text layer in AE is higher than that in Figma

As far as I know, the positionY of text layer of text is related to lineHeight.

Xnip2021-08-29_00-07-24 Xnip2021-08-29_00-07-41

r('ADBE Transform Group')('ADBE Position').setValue([ layer.frame.x * compMult, (layer.frame.y + layer.fontSize/6) * compMult]);

maybe this line shouldbe include lineHeight in calculate postionY of textLayer on figma import to ae

nangonghan commented 2 years ago

As far as I know, in AE, the text will be on top of the text box, and in figma, it will be centered. This may be the cause of the error

nangonghan commented 2 years ago

https://www.figma.com/blog/line-height-changes/

nangonghan commented 2 years ago

I hope this link is helpful to you. I tried to fix this bug, but I haven't fixed it yet.