Any way to determine which clip_slots have clips?

Jul 29, 2010 at 10:17am

Any way to determine which clip_slots have clips?

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
#51557
Aug 6, 2010 at 1:52pm

this is how you do that:

– Pasted Max Patch, click to expand. –
#184944
Aug 6, 2010 at 2:13pm

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. –
#184945

You must be logged in to reply to this topic.