Loop Clip Slots

122 viewsCSS Questions
0

How to use Loop Clip Slots?

Is there a way to loop through ALL Clip Slots (not just those in one Scene or in One Track?

I’m trying to set ALL clips as grey and those clips in the session box to a specific color according to track.

Already (to mark the tracks for a controller with no led or feedback) I have a color match setting wherein each of the eight tracks show a different color, which changes as the session box moves. This works perfectly and my controller’s Red column corresponds with the Red Track.

I’d like to do the same thing with the clips but I’m having trouble. I’ve tried Looping through scenes and then using

self.song().tracks[self.get_sessbox_track_offset()].clip_slots[loop_number].clip.color = 15151170
self.song().tracks[self.get_sessbox_track_offset()+1].clip_slots[loop_number].clip.color = 16220729

and so on,

but I’m not getting the clips to be colored. (I am getting an error of course for the clip slots with no clip, but that shouldn’t stop the clips from getting color changed, should it?

Can you point me in the right direction?

Thanks in advance for any help – from anyone.

admin Changed status to publish May 22, 2024
Attached Files:
0

Awesome, glad to hear this helped! 🙂

admin Changed status to publish May 22, 2024
Attached Files:
0

Thanks John!

I saw that #tracks# but I had no idea this was no good! lol. That fix (I actually changed it to self.song().tracks[self.get_sessbox_track_offset()-1].clip_slots and for the session tracks I’m using self.track_num(1)) did it!!!

It also allowed me to free up that modifier. The track reference is working so I no longer need it.

This is amazing – it’s going to be so great for my portable workflow!!! Thanks again for Remotify!!

admin Changed status to publish May 22, 2024
Attached Files:
0

It seems there’s an issue in the code being generated for it.
After selecting Loop – Clip Slots, click the ‘switch to custom’ code button.
You will see this code: self.song().#tracks#.clip_slots
Change it to this: self.song().tracks[0].clip_slots

If you want to loop through a specific track, change this part tracks[0] to the track number (minus 1).
i.e. if you want to loop through track 3: tracks[2]

admin Changed status to publish May 22, 2024
Attached Files:
0

(I thought it was my code (see response #4) but it seems that no matter what I enter, I cannot have a script which attempts to use “Loop – Clip Slots”)

admin Changed status to publish May 22, 2024
Attached Files:
0

John,

the example you have in respnse #3 above; does that work?

I can’t seem to show any version of Loop Clip Slots that works. (I mean I can’t see it in action anyway because the script won’t load.)

admin Changed status to publish May 22, 2024
Attached Files: