Accessing text properties
Posted: February 3rd, 2016, 3:01 pm
I am trying to figure out if it is possible from an expression to access 2 text properties:
1. If a bounding box is enabled, and if so, its size (width/height). I.e NOT .sourceRectAtTime() but the constraining box that wraps and limits the size of the text.
2. The paragraph alignment setting, i.e. left / center / right / justify last left / justify last right / justify all
So far it seems this is not accessible, as I do not get anywhere fiddling around with theTextLayer.Text.sourceText or theTextLayer("Text")("Source Text"). I see there is a .numProperties but there is no .property() function to access anything, so I am assuming that's the parent's property count.
Text layers apparently do not have any .source either, so there's no way of getting there that way...
1. If a bounding box is enabled, and if so, its size (width/height). I.e NOT .sourceRectAtTime() but the constraining box that wraps and limits the size of the text.
2. The paragraph alignment setting, i.e. left / center / right / justify last left / justify last right / justify all
So far it seems this is not accessible, as I do not get anywhere fiddling around with theTextLayer.Text.sourceText or theTextLayer("Text")("Source Text"). I see there is a .numProperties but there is no .property() function to access anything, so I am assuming that's the parent's property count.
Text layers apparently do not have any .source either, so there's no way of getting there that way...