Dan,
Yes, you are correct, it is a slider. Your code worked perfectly. I am so very thankful for your help!
I’m sitting here going through your code trying to figure out what it all means. The logic of it all makes sense and lines up with my programming experience. My initial attempts to get this to work followed the same format. However, it’s the syntax of the terms like .numKeys, .nearestKey(time).index, .key().time that were missing from my brain preventing me from figuring it out. I googled these terms when I was trying to dissect the code to which I linked in my first post and the best I found was this:
https://helpx.adobe.com/after-effects/using/expression-language-reference.html
It explained what “numKeys” does, but not so much how it works or how to use it, at least not enough for me to grasp. If I could ask you for a bit more help, would you be able to recommend any good references for learning how these commands work and how to use them? So far, everything I’ve come across is either too simple (ex. how to write a script to display a slider’s value) or too specialized (and difficult to apply to anything other than one specific example). I’m looking for something I can pair with that (above linked) expression language reference to be a good go-to when I need to figure something like this out. Hopefully that makes sense…
Is there anything you would recommend?
Either way, thank you again for your help!
Kevin