Search found 5 matches

by spoox
February 8th, 2016, 5:23 am
Forum: Expression Discussion
Topic: Difference between layer.transform.scaling and layer.scaling
Replies: 1
Views: 9348

Re: Difference between layer.transform.scaling and layer.sca

FWIW, how to reproduce 1. Create new comp 2. Add an image to it 3. Add this expression to the image's Transform > Position property: var me = inspect(thisLayer); function inspect(layer) { var info = { layer: layer, scaling: { x: layer.transform.scale[0] / 100, y: layer.transform.scale[1] / 100 }, //...
by spoox
February 8th, 2016, 5:16 am
Forum: Expression Discussion
Topic: Difference between layer.transform.scaling and layer.scaling
Replies: 1
Views: 9348

Difference between layer.transform.scaling and layer.scaling

Is there any difference between accessing scaling, position and anchor points via someLayer.transform.* instead of going directly to someLayer.* ? I had some weird case here where accessing even someLayer.transform.scale[0] would crash AE with an error about it trying to allocate several megabytes o...
by spoox
February 8th, 2016, 5:14 am
Forum: Expression Discussion
Topic: Accessing text properties
Replies: 3
Views: 12312

Re: Accessing text properties

As a side note: interestingly enough I did not actually need access to these properties, as I only needed to take into account the .left and .top aspects of the rect returned by sourceRectAtTime(). :)
by spoox
February 4th, 2016, 3:11 am
Forum: Expression Discussion
Topic: Accessing text properties
Replies: 3
Views: 12312

Re: Accessing text properties

Aha, but that was quite helpful actually at least in understanding how to iterate over the properties - it wasn't apparent how the relation to .numProperties and .(1..numProperties) worked. For what I am doing I should be able to just write a script that will add the expression to the layer anyhow (...
by spoox
February 3rd, 2016, 3:01 pm
Forum: Expression Discussion
Topic: Accessing text properties
Replies: 3
Views: 12312

Accessing text properties

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. l...