Forums > Max For Live

Any way to determine which clip_slots have clips?

July 29, 2010 | 10:17 am

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?

[attachment=137751,880]

Attachments:
  1. tester.png

August 6, 2010 | 1:52 pm

this is how you do that:

– Pasted Max Patch, click to expand. –

August 6, 2010 | 2:13 pm

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

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

– Pasted Max Patch, click to expand. –

Viewing 3 posts - 1 through 3 (of 3 total)