not understanding highlighted slot

529 viewsCSS Questions
0

hi, i have an encoder that scroll through tracks and one that scroll through scene, so I can highlight any clip, I like to be able to create a clip if that clip slot is empty or launch the clip if there is a clip in that slot.
I tried that:
button 81 was pressed as listener
condition1:
self.song().view.selected_track.clip_slots[0].has_clip == True
action1
self.song().view.highlighted_clip_slot.fire(4, 1)

condition 2
self.song().view.highlighted_clip_slot.has_clip == False
action 2
self.song().view.highlighted_clip_slot.fire(4.0, 1)

but with this it always act on the first clip of the first track on first scene.
do you know what I m missing?

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

Hi benwadub,
At first glance: could it be that the first reaction should be
self.song().view.highlighted_clip_slot.has_clip == True

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

Oh, I was not aware of that..
Good thing you found the solution!

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

Make sure to periodically clear the log – if you’re continuously outputting to the log, keep an eye on the file size (next to the clear log button).
Also, turn off ‘MIDI learn’ if you’re not using it.

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