-
SureTarget 2 messing up expression
hey all. i just decided to try out ST2 today after hearing about it, hoping it might help my camera animation for my current map project.
the animation is relatively straight forward. camera zooms in from afar and then moves around, mostly in x and y from that point on. i had a bunch of text layers (3d) and had found an applied this expression to them, to keep their scale relative to the size of the comp (so they didnt get bigger as the camera got closer)…
cam = this_comp.active_camera;
distance = length(sub(position , cam.position));
s = distance / cam.zoom;
result = mul(scale, s);result * thisComp.layer("Adjustments").effect("Scaler")("Slider")
(i added in the result part at the end to control the scale of the text if i found it to be or too small)
so this all worked fine until i added ST2. im not exactly sure why its not working though. as i scrub the dolly control, i can see that its driving the Z position of the camera, just as i had manually animated before, but for some reason now, the text does not work/scale as expected in relation to the cameras dolly/Z position. the expression is doing SOMETHING, as the #s for the scale are still changing as i scrub the dolly, but they are not changing enough, or at the right rate to maintain the relative size of the text on screen.
both my original camera and the ST camera are using the 24mm preset, so its not just a matter of a different lens.
strangely, also, since the expression refrences the active camera, not a camera by name, even if i am viewing thru my original camera (it is active) the scale doesnt work. if i change the expression to name my old camere specifically, the expression works again.
so im not sure if anyone knows enough about how ST2 works, and why it is causing the scale expression to NOT work properly, but maybe someone will have some ideas. i posted on the video copilot site as well, so maybe between both it will get solved.
so, hopefully someone can shed some light on this! thanks!