Forums > Max For Live

search playing clip in a track

February 27, 2014 | 9:33 am

Hi everybody,

I’m looking for a way to find and highlight (scene / track) the playing clip in a track.

Is anybody know how to ?

Cheers


February 27, 2014 | 12:49 pm

You’ll have to do some iteration through every clip on a track and check if ‘is_playing’ is true.
Sounds like a job for the LiveAPI javascript object.



Lee
February 27, 2014 | 2:51 pm

hi. you don’t need to search, the LiveTrack has a ‘playing_slot_index’ property which indicates current playing clip slot if >= 0


February 27, 2014 | 3:00 pm

Lee,

You’re the man. I never new about that property. So much easier then the way I was thinking :)


February 28, 2014 | 8:43 am

Thanks you 2, I’ll try that this w-e.

will tell you



Lee
February 28, 2014 | 1:52 pm

np. its worth just scanning through the LOM document to see what’s out there :)


March 2, 2014 | 8:40 am

Thanks a lot, I’ve come to that :

– Pasted Max Patch, click to expand. –

Don’t think it’s really clean, but workable ;o)

to be continued …


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