-
How to target multiple keyframe to check their values from Slider Control
First post here! Hello everyone ☺
If you are on the AfterEffects subreddit, you may have seen:
https://www.reddit.com/r/AfterEffects/comments/5pdszq/replicating_synthesia_in_after_effects_custom/
I am stuck at the part where chords come in (see multiple keyframes in some of the frames which represent a set of chords):
https://s29.postimg.org/xnn5bf7kn/midi_chord_keyframes.png
I have a bunch of layers in the comp (underneath the ‘midi’ layer using the following expression on the opacity property:
midiNote = thisComp.layer( 'midi' ).effect( 'ch_0_pitch' )( 'Slider' );
if ( midiNote == parseInt(X) ) 100 else 0; // where X = an integerI need a hand in targeting the keyframes at any given time marker instead of the Slider value number.
How can I target all the keyframes instead of the one value that’s showing in the Slider Control?
Thanks.


