[solved] Script to duplicate a layer and insert it at the time of a keyframe value output
I have a layer that has a radiowaves effect. I want that layer to do its effect at every point in time of a frequency output from soundkeys. I don't want to have to duplicate the layer and position it in the timeline manually at every keyframe of the soundkeys output expression value. How can i do this automatically with a script? I created one to show how to do this
Edit: I started creating the script. So far it just grabs keyframes and finds at what time the ones who's value is greater than a certain value. Duplicating and setting layers at those time values aren't finished yet. I had to copy the soundkeys output keyframes to a new layer's opacity property as i don't know how to grab the property called "Output 1".
Edit2: this is complete and i will be creating a UI for this with minor tweaks.