I'm using the expression below to control de scale of a bunch of layers that are going to be sequenced, each layer has its in point two seconds after the previous one, the layer that they are referencing (my index+1) it's just a null with keyframed scale from 100 to 148% over 10 seconds. The layers are already scaled at 100% so I don't want them to get too big and pixelated, due to the sequencing I'm using a valueAtTime command in order to have them start later in time, but when I put the last value (to subtract it from the scale and prevent them to be too scaled up, it removes it on the x axis but not on the y, so the image becomes distorted. The original null controlling the scale is not distorted so I really can't understand why is getting distorted here.
Can anyone tell me what I'm doing wrong?
Thanks!
sizemaster = thisComp.layer(index+1).transform.scale.valueAtTime(time+1);
sizemaster-44;