How to get path from id?

Learn about building and using Max for Live devices.
Post Reply
S4racen
Posts: 5822
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

How to get path from id?

Post by S4racen » Tue Oct 26, 2010 6:44 am

Hi all,

it may seem a really simple question but ivegot the I'd of a device using the m4l abstraction so I want to find it's path from thus id...

The two thongs I want to be able to do are...

Append parameters 1: so that with the selection of the device I always select the first parameter

Discover the track it resides on: which won't be the same track the m4l device sits on so I don't think I can use a this_device path?

Any help much appreciated!

Cheers
D

ST8
Posts: 259
Joined: Mon Jan 26, 2009 12:55 pm

Re: How to get path from id?

Post by ST8 » Tue Oct 26, 2010 10:22 am

pass the id to a live.object, then send it getpath. that should get you what you want. then you can append <something>

to get the track id from the device you want to get the id of canonical_parent, then do the same id -> path trick above

S4racen
Posts: 5822
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: How to get path from id?

Post by S4racen » Tue Oct 26, 2010 1:57 pm

You are an Absolute Star!!

Thank you!

D

Post Reply