Loop Clip Slots

2.35K 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
Attached Files:
0

Thanks John!

I’ve figured out how to do what I need based on what you’ve got above, but I want to specify the track programatically.
Before I try modifiers, can you tell me what’s wrong with the custom code in the attached screenshot?
I’ve tried

self.get_sessbox_track_offset()-1

[self.get_sessbox_track_offset()-1]

and
(self.get_sessbox_track_offset()-1)

IF I use a modifier instead, for “self.get_sessbox_track_offset()-1” can I then use
M2+1?

admin Changed status to publish
You are viewing 1 out of 10 answers, click here to view all answers.