probably an easy question: how to highlight a clip via M4L


    Feb 18 2014 | 9:31 pm
    HI there everyone,
    I am quite new to using Max 4 Live and I might have a rather simple question:
    You see, there's a M4L device called "Clip Operations" (Clip-Operations.amxd) which shows you what can be done with Live clips via M4L.
    If you Highlight a Clip, it gets the name of the clip automatically and also all the operations provided by the device work on that clip.
    What I wanted to do is not click on one clip with my mouse, that works fine, I wanted to highlight a track as if selected by mouse with M4L. However, I did not find any possibility to do so.
    I messed around with the clip IDs which come out of live.path, but I am afraid those will change whenever I move my tracks.
    Also I tried to get the device path-information a la "goto live_set scenes 2 clip_slots 1" which kinda works resulting in a starting of the clip, but all the operations can NOT be performed and the name of the clip is not shown in the device.
    So what I want to do is:
    1. Creating a button which highlights a clip (This is the part which is driving me nuts right now)
    2. getting the device to act as if I had highlighted that clip with my mouse (Well, that should be easy after having a solution for 1, since highlighting a clip already gets the device to handle that clip...)
    (and I will not post my crippled Frankenstein's-Monsterish-Sript-Kiddy-Art-Code, because I am already ashamed...)

    • Feb 18 2014 | 10:52 pm
      Not easy as having a dedicated function for this stuff, but possible
      Have a look at this device:
      To select a clip, it seems you have to select a track, then select a scene (grid like).
      Then you get the highlighted clip slot and work from there.
    • Feb 19 2014 | 7:23 am
      Can't you do it using this path ? 'path this_device canonical_path clip_slots $1' to launch a clip on the track holding the device ? (not in front of Max though, and about to leave to work after four hours sleep so I may be wrong...). Else ti can be done 'grid like' like Newtfish wrote.
    • Feb 19 2014 | 10:58 am
      Thanks to the both of you for a quick answer!
      The track gizmo is actually doing, what I need, just needed to add looping control, which is in the clip-operations.
      Works fine now!