Page 1 of 1

LOM Class: Song Function: move_device

Posted: Thu May 08, 2025 4:51 pm
by derf07
Hello.
Thanks in advance for your help.

Apparently, the code [call move_device id (device identifier) ​​id (of the targeted track) device position number in the targeted track] isn't working for me.
I'm getting the following error message: live.object: Invalid arguments: 'move_device <Device.View object at 0x000000004698F6C0> <Track.Track object at 0x0000000046A16C70> 1'
Do you understand this message?

Re: LOM Class: Song Function: move_device

Posted: Thu May 08, 2025 6:26 pm
by Rivanni
You put the track and device ids in the wrong order.

The syntax in your post is correct, with the device id coming first, followed by the track id. However, in your code, you mixed them up.

Re: LOM Class: Song Function: move_device

Posted: Fri May 09, 2025 7:50 am
by derf07
Thank you for your reply.

The problem is that I tried to place the identifiers in both directions, but it doesn't work.

So I wrote: call move_device id 120 (device identifier) ​​id 29 (target track identifier) ​​1 (device position in the device chain), then I tried call move_device id 29 id 120 1.
None of the codes work. I always get an error message. For the first code: live.object: Invalid arguments: 'move_device <Device.View object at 0x000000004762C880> <Track.Track object at 0x00000000476B5A40> 1'. For the second code: live.object: Invalid arguments: 'move_device None <Device.View object at 0x000000004762C880> 1'.

So, my question is: has anyone reported a bug with this function of this class?

Re: LOM Class: Song Function: move_device

Posted: Fri May 09, 2025 11:34 am
by Rivanni
Can you share your patch here? At least the part in which you obtain the device and track I'd as well as the move function.

(Select the part of the patch you wish to copy
Choose Copy Compressed from the Edit menu to copy the selected objects to the clipboard. Then paste it here.)


What version of Live and Max are you using?

Re: LOM Class: Song Function: move_device

Posted: Fri May 09, 2025 12:53 pm
by derf07
<pre><code>
----------begin_max5_patcher----------
1003.3oc0WssaiaCD8YGf7OPnmUM3UcoeD8gh9VPgAsLiC2UVRPh1IaWz+8N
jT2W6XAW6EsAHVPCIm4Lm4BG88meZUv1xOTMAneE8BZ0puCRV4jYkrpSvpfC
xOxxkMtMFbP0zH2qBBaWzn9v3VHSlmiNTdRsYm5jNSgz6PDJ18HEQ5OPUspQ
UXjFcYwlZUlwaeVZ7ZbHhfYtGQI1GT7Z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cnnKmGc9stQWXaMpt7Q5ZoF103tFBwCyA10x5.zux08COs2qaDNaC
ulp1IYci587SvV9G.VkPebC
-----------end_max5_patcher-----------
</code></pre>

Ableton Live 11.3.42
Max For Live 8.6.5

Re: LOM Class: Song Function: move_device

Posted: Fri May 09, 2025 1:34 pm
by Rivanni
You use

Code: Select all

path live_set tracks 8 devices 5 view
instead of

Code: Select all

path live_set tracks 8 devices 5
view is a child of the device, not the device itself. So, you use the wrong id.


You also feed all paths into the same live.object. To quickly get the id it's fine, but remember that the id of the last path is used, and you want that to be that of live_set.

Re: LOM Class: Song Function: move_device

Posted: Sat May 10, 2025 7:49 am
by derf07
Thank you.