Hi Leviah, you should consider this resource : Expression language in After Effects Your code is faulty and to complicated and therefore fails. There are several syntax errors, for example: if you want to address an attribute of an object, you need the whole "path" from the object to that attribute. "position.speed" won't work, because it is "thisLayer.transform.position.speed". Also, you should learn the difference between "=" and "==". Instead of writing all those lines, you can just link the speed one by one to the scale, adding a correction factor for fine tuning. This is the easiest way in most cases, yet not the most sophisticated. To manipulate the factor, the best way is to outsource it on a slider. This is untested code, but from my friday evening logic, it should run. (You need to put a slider control to the layer effects stack and set it to 1 for the beginning!) factor = thisLayer.effect("Slider Control")("Slider"); speed = thisLayer.transform.position.speed * factor; speedToScaleX = thisLayer.transform.scale[0] - speed; speedToScaleY = thisLayer.transform.scale[1] - speed; [speedToScaleX, speedToScaleY]; I don't know the dimension of "speed". You should check the values and bring them into a usable scale. You can use the slider for this, but feel free to add constant correction values to the calculation, if necessary. Also, this code covers individual scales for x and y. If you are always at [100,100], you can skip some lines. Let me know, if this works! *Martin
... View more