![]() ![]() Let me know if you have any questions or want to know more about how this works! So, this is what the code should look like, applied as an expression on Layer 2's time remap: Otherwise the code below should run as it is. so you'll need to adjust those numbers as well as the name of the "Layer 1" if it is different. I'm not sure what your time stamps mean because it seems like from your example you're either missing a colon or you're working at more that 555 fps, which would be insane. The "value1" and "value2", to work with the time remap, should be time in seconds. ![]() The time in the function is intended to be the inout variable and the "value" is the output variable. ![]() However, this is misleading because in your case the "time" value is actually the x position, not the time remap. "t" is supposed to stand for "time" and "tMin" and "tMax" are the upper and lower bounds of that value. The arguments are not very intuitive, so I'll break those down a bit. There are a few flavors of this function, but you want that one with all five arguments. You can also just copy abs paste that in from here instead. In this menu, under "interpolate" you'll find the "linear(t, tMin, tMax, value1, value2)" function. That will open a flyout menu that has all of the functions that are specific to after effects and not generic javascript. If you didn't know, you can click on the arrow button to the right of the expression equals sign that used to be a stopwatch. But this can be most easily done using the built-in linear interpolation function. And huh don't need any sliders unless there is some extra functionality you're wanting to build in. Absolutely! This is a great application for expressions. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |