Activity › Forums › Adobe After Effects Expressions › How to target multiple keyframe to check their values from Slider Control
-
How to target multiple keyframe to check their values from Slider Control
Peter Zeet replied 7 years, 11 months ago 3 Members · 17 Replies
-
Shahid Raza
January 28, 2017 at 6:11 pmAwesome stuff! Works like a charm! However, the render times are really slow with it.
Is there anyway I make my code and structure efficient? I can send you the .aep file if needed.
I have 216 layers this code is applied to and it’s taken 2hrs 30mins to get 50% through the render on 720p settings whereas the one I had previous expression was exporting at the same settings in 30 mins max.
Maybe my hopes of this template being something similar to Synthesia won’t really work well… =/
But thanks for your help on this!
-
Dan Ebberts
January 28, 2017 at 6:31 pmHow long is the comp? The issue is that for the expression to get the info it needs, at each frame it has to process all previous keyframes, which becomes more and more work as the comp progresses.
It would probably be much faster to have a script analyze the data and keyframe the keyboard keys on and off, because the script should only have to make one pass through the data.
Dan
-
Shahid Raza
January 28, 2017 at 6:35 pmDepending on the MIDI piece, it can vary. This comp is 3min 30sec and it does look like the estimated time keeps increasing.
How would I go about writing a script for the keyframe analysis on the midi layer or would you have something handy to do this kind of stuff?
Thanks again.
-
Dan Ebberts
January 28, 2017 at 6:44 pmIt would be a pretty straightforward script if you have some scripting experience. If you haven’t written a script before, it will take a while to get used to the AE object model, but this would be a good first script since it probably doesn’t need a UI or any file I/O (depending on how much you want the script to do). This would be a fun one to learn on.
Dan
-
Shahid Raza
January 29, 2017 at 12:17 amI’ve never scripted before, so challenged accepted ☺
Worse case, I’m going to try and develop my own program / app like Synthesia if the rendering becomes an issue (which is even more of a challenge lol).
Thanks for the help with the keyframe stuff though.
-
Peter Zeet
August 20, 2018 at 3:35 amhi!
I have a question, but it’s probably pretty much complicated than I was thinking:
how could I add a simple duration when it goes from 100 to 0? so its like a simple fade every time)
I was trying to figure out with a linear function, but I don’t have idea how to know the time the value is 100 changing to 0, to add the duration to that valuethanks!
Reply to this Discussion! Login or Sign Up