Any way to determine which clip_slots have clips?

Troy's icon

I am trying to figure out an efficient way to determine which clip_slots actually have clips in them without having to iterate through them. If iteration is the only way, how do I know how far to go? Is there a way to get the id of the last clipslot?

880.tester.png
png
Timo Rozendal's icon
Max Patch
Copy patch and select New From Clipboard in Max.

this is how you do that:

Timo Rozendal's icon

btw, there is some weird stuff in your patch. You shouldn't use the live.observer in this way, better use live.object and get

Max Patch
Copy patch and select New From Clipboard in Max.

here is how I would do the first part of your patch: