@jetdv Quick question Edward. Can a script access and change the timeline ripple button options? I've looked through the API and I can't find anything. If not, I'll have to find another way of doing what I want to do.
No. The menu options are not available to change via a script and a script can't access the ripple functions to do them in post. The best a script could do would be to "simulate" that same function by moving things - but it would have to know what to move.
Thanks, Edward. I have an idea of what to do to simulate this. It's just going to take a bunch of code to do it. There are some times when I drag a load of media items onto the timeline, then realise that I've failed to set the auto cross fade option. I want to create a crossfade on every media event by shuffling each event forward by x frames. It would have been relatively easy if the auto ripple function could be accessed and switched if necessary. Oh well. That's set me a challenge. I know it would be easy just to delete all the media, set the auto cross fade and drag them back on again. But that wouldn't teach me to script, would it?
@Jack S That's still a really simple script. Take a look at this tutorial. Basically modify it so it only uses selected events then you can limit which events are affected, go through the events forward, make gap the length of the overlap you want, and then subtract the gap instead of adding it.
@jetdv Thanks Edward. I've modified my script accordingly. I've also included a form to allow different frame values for the cross fade to be inputted, and included a bit of code to ensure that the cross fades only occur on selected tracks.
The learning curve's getting shallower (a little).🙂