[live.api] [js] How to get selected clip path ?

Jul 14, 2013 at 2:00am

[live.api] [js] How to get selected clip path ?

HI !

its hard to find examples about LiveAPI in javascript :/ does anyone know how to replicate this behaviour into the code ?

– Pasted Max Patch, click to expand. –

.
im full of hope
k

#255959
Jul 15, 2013 at 12:33am

any chances ?

#256019
Jul 15, 2013 at 5:06am

i’ll send you this when I get home tonight

#256046
Jul 15, 2013 at 5:10am

off the top of my head though, try:

function get_selected_clip_path() {
var api = new LiveAPI( callback, ‘live_set view detail_clip’ );

api.get( ‘path’ );
}

function callback() {
}

#256047
Jul 15, 2013 at 5:10am

all good Lee ! whenever you can

#256048
Jul 15, 2013 at 6:55am

Thanks Lee , yeah ,ive been trying that . am i right saying that IT CANT be monitored in realtime ? i saw code that observe “level/gain slider” . but it doesnt work for id here . or im just missing something

#256068
Jul 16, 2013 at 2:15am

didn’t get chance to try last night… real-time monitoring shouldn’t be triggered until you set the ‘property’ field of an API object… I’ll have a look tonight, but if you’re getting that message, then it *may* be a bug in the M4L code

#256160

You must be logged in to reply to this topic.