Replacing StaticPlaybacks

This is a place for people to share the custom macros they have written.

Moderator: Moderators

zzjarnozz
Posts: 4
Joined: 30 Aug 2022, 12:08

Replacing StaticPlaybacks

Postby zzjarnozz » 03 Feb 2026, 21:09

Good evening,

I want to create a macro that deletes the current playback that is running on the static playback button 1 on my T3 and replace it with a different playback from my playback window.
I've looked around abit and stuck some bits together but i'm stuck at deleting the playback and have als not got it to copy the other playback.
This is what i've got right now.

<?xml version="1.0" encoding="UTF-8"?>
<avolites.macros>
<macro id="UserMacro.Replacer1">
<name>Replacer1</name>
<sequence>
<step pause="0.01">Handles.SetSourceHandleFromHandle("StaticPlaybacks", 1)</step>
<step pause="0.01">Handles.ConfirmDelete()</step>
<step pause="0.01">Handles.SetSourceHandleFromHandle("Playbacks", 10)</step>
<step pause="0.01">ActionScript.SetProperty.Enum("Handles.OperationMode", "copy")</step>
<step pause="0.01">Handles.CopyDestination("StaticPlaybacks", 1)</step>
<step pause="0.01">Handles.ClearSelection()</step>
</sequence>
</macro>
</avolites.macros>

Any help is appreciated. Im a nooby at creating macro's. :oops:
icke_siegen
Posts: 1154
Joined: 02 Jul 2010, 10:29
Location: Siegen, Germany
Contact:

Re: Replacing StaticPlaybacks

Postby icke_siegen » 04 Feb 2026, 14:09

The function Handles.SetSourceHandleFromHandle requires a full handle, e.g.

Code: Select all

Handles.SetSourceHandleFromHandle(handle:"Location=StaticPlaybacks,1,1")
. This way it would work on any page in the designated window, with the handles being counted from 1 up.

In turn the function Handles.SetSourceHandle only needs window and handle number (0-based), and always works on the current page. In your case it would be

Code: Select all

Handles.SetSourceHandle("StaticPlaybacks", 0)


Additionally the location "Playbacks" refers to the playbacks on the real faders. If you want to address the playbacks windows you'd need to use "PlaybackWindow".

Something like this should do what you want:

Code: Select all

<step pause="0.01">Handles.SetSourceHandle("StaticPlaybacks", 0)</step>
<step pause="0.01">Handles.ConfirmDelete()</step>
<step pause="0.01">Handles.SetSourceHandle("PlaybackWindow", 9)</step>
<step pause="0.01">ActionScript.SetProperty.Enum("Handles.OperationMode", "copy")</step>
<step pause="0.01">Handles.CopyDestination("StaticPlaybacks", 0)</step>
<step pause="0.01">Handles.ClearSelection()</step>
zzjarnozz
Posts: 4
Joined: 30 Aug 2022, 12:08

Re: Replacing StaticPlaybacks

Postby zzjarnozz » 04 Feb 2026, 21:23

Thanks for the response!

It does delethe the playback on the static playback window now. But it doesn't copy over the playback from the playback window.
icke_siegen
Posts: 1154
Joined: 02 Jul 2010, 10:29
Location: Siegen, Germany
Contact:

Re: Replacing StaticPlaybacks

Postby icke_siegen » 05 Feb 2026, 10:37

well, it does work for me: please note that ("PlaybackWindow", 9) points to button 10 in the Playbacks window (that's what is called 0-based)
icke_siegen
Posts: 1154
Joined: 02 Jul 2010, 10:29
Location: Siegen, Germany
Contact:

Re: Replacing StaticPlaybacks

Postby icke_siegen » 05 Feb 2026, 10:39

well, it does work for me: please note that ("PlaybackWindow", 9) points to button 10 in the Playbacks window (that's what is called 0-based)

Can you pelase try again? if it still doesn't work then the logs might help...
zzjarnozz
Posts: 4
Joined: 30 Aug 2022, 12:08

Re: Replacing StaticPlaybacks

Postby zzjarnozz » 05 Feb 2026, 21:04

It worked, Thank you! :D

I didn't know what 0 based ment. Thansk for explaining it.

Who is online

Users browsing this forum: No registered users and 30 guests