AEUX icon indicating copy to clipboard operation
AEUX copied to clipboard

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

Open nangonghan opened this issue 4 years ago • 3 comments

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 avatar Aug 28 '21 16:08 nangonghan

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 avatar Aug 28 '21 16:08 nangonghan

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

nangonghan avatar Aug 28 '21 16:08 nangonghan

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

nangonghan avatar Aug 28 '21 16:08 nangonghan