🔥 Lifetime deal! Get Control Surface Studio for Just £67 👉 Click Here To Get It
Time left... mailtimers.com
⚠️ Lifetime licenses are ending soon, get yours before they're gone ⚠️
Your shopping cart is empty.

Delete Current Highlighted Clip

Submitted by jonathanbaldwin on Tue, 03/28/2023 - 03:03
jonathanbaldwin
Control Surface Studio User

How do I delete the clip that is currently selected? You guys had me do a reaction in the older version of .song().view.highlighted_clip_slot.delete_clip()
But I am not sure how to do that in the new version. The one that I tried kept moving the clip down a scene every time I used it.

Topic Category: 

3 Responses

Comments

JohnC
Forum Admin
#1

This will delete a clip.
self.song().tracks[0].clip_slots[0].delete_clip()
Or you can use the action: 'live object model > clip slot > delete clip'

jonathanbaldwin
Control Surface Studio User
#2

The behavior I am getting from this is it moves the current clip down one scene. It does not delete it.

jonathanbaldwin
Control Surface Studio User
#3

Actually it does not appear to be doing anything. I had a conflicting script but now that I got it in its own channel it is not doing anything. I am sure I am sending the right midi notes from my controller (double checked it by listening in your app).