Change blue hand (device assignment) via max for live

1.79K viewsGeneral
0

Hi I really like this application and would like to commend it’s creators on a sterling job!

I have a couple of little max for live related questions.

Is it possible to assign the device control (and lock it) to a device by sending in the device id in max for live.

I know the m4l LOM has control surface abstractions that allow certain things. Correct me if I’m wrong but I believe what is possible is all to do with the Python scrips and what they expose? If it was a case of exposing a method somehow in the generated python scrips I’m happy to get my ‘hands dirty’ and have a tinker with the python.

2nd question is similar really but I would like to move the red ring session box via M4L by sending in an XY offset.

admin Changed status to publish
Attached Files:
0

Hi,

Aside from using some Max4Live devices we haven’t investigated how python scripts and Live can interact at code level sorry.

Our scripts don’t use the blue hand for device control. i.e. the ‘selected device’ is defined as the currently highlighted device. This means that you can control selected devices on multiple tracks at once or the selected device on the currently selected track.

admin Changed status to publish
Attached Files:
0

Do you mean that you want to move a session box which is in a Control Surface Script via m4l. This is possible if you turn combination mode on for it.

Dustin Mosley Posted new comment
Attached Files:

Is there any more information on how to do this (move the CSS session box via Max for Live)? With Novation or APC controllers it seems to usually be the message: “call set_offsets 0 8” for example. I can’t seem to find any related functions on the CSS script I’ve made. I’ve turned on combination mode, but not sure I totally understand how to make sure there is a function from m4l that can communicate with the script. Is this done with a reaction in the script, or somehow defined and added to the controller template? Any help or directions to more info is much appreciated!

You can move the session box to a specific position via a reaction/code by using the function:
self.set_sessionbox_offsets(1, 2)
1 = track number
2 = scene number

Thanks for the reply! Unfortunately I’m still stuck. I see the “self.set_sessionbox_offsets(1, 2)” function on the CSS side of things, but can’t figure out how to call it in Max for Live.

I’ve saved it as a Reaction called grid_move. Do I need to set any specific Listeners in the Reaction? I have my session box setup in combination mode. In Max for Live I’ve tried the path “path control_surfaces 0” as I have my CSS script in the first controller slot, but the live.object returns: “ ‘LocalControlSurfaceWrapper’ object has no attribute ‘self.set_sessionbox_offsets’ “

I’ve been able to get this to work with default scripts from Novation and APC, but I have to use the path “path control_surfaces 0 components 1” and the call the function “set_offsets 1 2”. This path and command don’t work with my CSS script and trying to call “self.set_sessionbox_offsets(1, 2)” gives me errors as well.

Ultimately my goal is to be able to move the grid offsets not using the controller itself to do so, max for live on the computer, ultimately incoming MIDI patch changes for specific songs.