Fire and Stop a Clip or scene with the same button

2.41K viewsCSS Community Scriptscss script
1

Im trying to fire (play) a highlighted clip or scene and be able to stop it using the same button. using a MF Twister

I can get it to fire using this reaction

Listener>button XX was pressed

Action block 1

Condition>Clip is triggered>(bool) is equal to false (highlighted clip)

Action> clip-Fire

Action Block 2

Condition>Clip is triggered>(bool) is equal to True (highlighted clip)

Action>Clip-stop (highlighted clip)

It plays but won’t stop

Scenes are the same

Hellem Answered question
0

mine is working fine like this:

Condition:

self.midi_cc_ch_0_val_16.cur_val == 127

self.song().tracks[self.get_sessbox_track_offset()+0].clip_slots[self.get_sessbox_scene_offset()+0].is_triggered == True

Action:

self.song().tracks[self.get_sessbox_track_offset()+0].clip_slots[self.get_sessbox_scene_offset()+0].stop()

Hellem Answered question
You are viewing 1 out of 3 answers, click here to view all answers.