Replace a excisting playback in the playback window

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

Moderator: Moderators

daanvg98
Posts: 18
Joined: 08 Sep 2018, 13:46

Replace a excisting playback in the playback window

Postby daanvg98 » 10 May 2025, 14:14

Hi,

I am trying to create a macro that replaces 2 seperate playbacks (or more). Right now I have to following:

<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
<macro id="Flash White 1/2" name="Update Flash 1/2">
<sequence>
<step pause="0.01">Group.RecallGroupNumeric(2001)</step>
<step pause="0.01">Palette.ApplyPalette("Location=Colours,1,400", false)</step>
<step pause="0.01">Palette.ApplyPalette("Location=Beams,1,123", false)</step>
<step pause="0.01">Palette.ApplyPalette("Location=Beams,1,166", false)</step>
<step pause="0.01">Playbacks.StoreCue("PlaybackWindow", 330, false)</step>
<step pause="0.01">Programmer.Editor.Clear(Attribute.Mask.Clear.Value, Programmer.Editor.Fixtures.Clear.Presets,
false, Expert.ClearMenu.FadeTime)</step>
<step pause="0.01">Group.RecallGroupNumeric(2002)</step>
<step pause="0.01">Palette.ApplyPalette("Location=Colours,1,400", false)</step>
<step pause="0.01">Palette.ApplyPalette("Location=Beams,1,123", false)</step>
<step pause="0.01">Palette.ApplyPalette("Location=Beams,1,166", false)</step>
<step pause="0.01">Playbacks.StoreCue("PlaybackWindow", 331, false)</step>
<step pause="0.01">Programmer.Editor.Clear(Attribute.Mask.Clear.Value, Programmer.Editor.Fixtures.Clear.Presets,
false, Expert.ClearMenu.FadeTime)</step>
</sequence>
</macro>
</avolites.macros>

When running the macro it says: Handle is in use for cue 329 'Flash 1/2 1'
It probably says it because it can't store a new cue, which makes sense. I want to replace the current playback, because it is a playback that gets autoloaded into a cue list. I have tried another code line but can't get it to work. I used the following 2 codes which I got from:
- https://api.avolites.com/11.0/Playbacks ... ckCue.html
- https://api.avolites.com/11.0/Playbacks ... Build.html

I can't figure it out, maybe you can! :)

Thanks!
R v Daal
Posts: 1
Joined: 27 May 2025, 11:16

Re: Replace a excisting playback in the playback window

Postby R v Daal » 27 May 2025, 11:19

Hello daan,

I am looking for the same thing and try to write it on this moment.
try This lines for recording.
<step>Playbacks.MergePlaybackCue("userNumber:1001", true)</step> [for merge Playback]
<step>Playbacks.ReplacePlaybackCue(userNumber:1001, false) [for replace pallet]

i find it totay and i wil try it tonight.

Who is online

Users browsing this forum: No registered users and 6 guests