If you have a 200 X 200 solid in a standard HD comp and you pre-compose the new size of the layer is 1920 X 1080 (HD), so either expression would put the anchor point at the bottom center of the layer. Turning collapse transformations on changes the layer size if you have a layer that is smaller than the comp size. There is no need for all of the sourceRectAtTime() business if you want to move the Anchor Point of any other type of layer to the bottom center of the layer. You'll have to adjust the baseline shift to move the anchor point to the bottom of the last line of text. The width and height of a shape layer is the same as the comp size and width.Īdd your expression to the Anchor Point a text layer and the anchor point will end up below the baseline of the text by the height of the characters. It won't work because the Anchor Point of a shape layer is at 0, 0. If you add your expression to the Anchor Point of a shape layer it will not move the anchor point to the middle and bottom of the shape. Example: myTextLayer.sourceRectAtTime().width. Extents apply only to shape layers, increasing the size of the layer bounds as necessary, and paragraph text layers (After Effects 15.1 and later), where it returns the bounds of the paragraph box. Return type: JavaScript object with four attributes. SourceRectAtTime(t = time, includeExtents = false)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |