A Script that swaps events and overlap

Thiago_Sase wrote on 8/12/2024, 11:31 AM

@jetdv Please, could you help me to add the functionality of overlap in this code?

It's a script that swaps events on this way;

1 to 2 / 1 to 3/ 1 to 4 / ..... up to 1 to 10.
It also does;
2 to 1 / 3 to 1 / 4 to 1 / .... up to 10 to 1.
And it also does;
2 to 2 / 3 to 3 / 4 to 4 / ... up to 10 to 10.

That Logic works as expected. It's toggled, vice versa.

But when there are situations that events have overlap, crossfade, transition and when the swap happens the overlap is not shown. Then, i have to move the event manually with the mouse to make to work.

I did a video trying to explain better;


The code has 881 lines of code, i think it's too big to paste here,  isn't it?
Anyway there's a link bellow to download the code;

https://drive.google.com/file/d/15CTYBFQ-WznLjvOMNCuRlzEejYWF7o0l/view?usp=sharing

Comments

jetdv wrote on 8/12/2024, 7:47 PM

Based on the video, I'm not sure exactly what the script is doing (and/or NOT doing). Could you please better explain what the script is actually doing and fully explain what is happening vs what should be happening?

Thiago_Sase wrote on 8/13/2024, 5:52 AM

@jetdv Thanks for trying to happen once again. I did another video trying to explain better;

jetdv wrote on 8/13/2024, 11:36 AM

I'm confused as to what is on the two tracks. You're overlaying fully over other events on the second track?

It would be simple to just get the two fade lengths and then set them again after moving the event.

Thiago_Sase wrote on 8/13/2024, 3:28 PM

@jetdv After many tries and 100% of failures, i finally got what you meant;

It would be simple to just get the two fade lengths and then set them again after moving the event.

This was the best solution indeed. Thank you once again for that lesson Sir. It was great.