Simple question for M4L N00b!
Im trying to get my patch to highlight a clip slot in my project.
I have a message ‘goto live-set view’ patched to a live.path object. It’s middle outlet sending to the right inlet of a live.object.
Then another message ‘set highlighted_clip_slot 1′ patched to the live.object’s left inlet.
I know this is probably completely wrong, I have looked in the reference and the fact that it says you can set this value, aswell as it being a parent confuses me.
Note that ‘highlighted_clip_slot’ is a children of song view, ie. an object to be referenced by ID number.
So your set message requires an ID as parameter, something like ‘set highlighted_clip_slot id 118′.
The ID of clip slots can be obtained by sending ‘path live_set tracks X clip_slots Y’ to a live.path object.
I have set my patch up like you said however the 'set highlighted_clip_slot' id 118 returns as invalid syntax in the Max window.
I attached a picture of my patch so you can see how i set it up.
It seems my explanation wasn’t quite clear. Here is a patch to show the set up.
----------begin_max5_patcher---------- 565.3ocyV10aaBCEF9Z3WgkUurKB6DBgc21eioJjANK3MvfvNoYqp+2m+.RS WPIrzAsW.He7G799v4f8S9d3z5CfDi9L5aHOum787rgLA75Z6gqXGxJYR6vv Y0UUfPgu20mBNnbwK4MHYYsBwE4vg99E6p3hRPYmLoK32qEJI+2fMVvhfWFa 8NU+f6i1vTYEbw1jVHS4TJkZljdpqLO1DZarYQ.5gt4vysZpN8GehDhO4sJX U12J9KsbVI5q0k4XSuO66atc+HgfVooP6a2izK4Qh0VTq6BCNyitkQ8qFvMA L27UAgSYhs3AIwxIfDUfTx1BmkNncTApjuGRjfBoZYY+ThHHSVRhIKQhtiLH +n+K7ibc9E5xNhroJj0WBfCSM5Tj+.OpW6yflgWKLj6hYVMsfTWAxT7ZwIFl rZsKGYo4QP2siVZT7b404oa4CIWOezjLZuFBqwezn5akOqBrHgtby+E9rYFq UMUnE7sEk5KEjmbrHUWihtiNGkoTB0Ust9FKSid2921dN73jhn9LKh8Q7sRn vYthS2gwBSIYVt1Ql0Q1Zt3QTyMDYt59hccKY60UGNekvTpVd5Nk6zSdGAjG NoAZkboBDYNmYiaIaOespPiIwee1KqIMweMzk06Zy58P2uGPuXybPp3B6FBm LFssz631OlBddNHN8fUU77lZ8gF5j.5gAS.FqhhGghhd0XlZEYNuyUkjY684 TSzQno3YURgiPQalUEEMxj6aUQ5FO6+GF5XB+B -----------end_max5_patcher-----------
With everything thing I want to do with the API. Is it true i need to first find the id of the item i want to effect eg. which track, parameter, device, clip, clip. AnD then apply it to a live object with the corresponding parent path?
In this case the parent of clip-slots is view?
Thanks for the time.
Also how can I save this chunk of programming as an abstraction so I recall it later?
Usually you don’t need to find the id first, but highlighted_clip_slot is a special case (view as parent).
Ordinary clip slots have track and/or scene as parent, and thus can be accessed directly with the path.
To make an abstraction save the patch with some meaningful name and put it into your Max folder.
Forums > Max For Live