Question about macros
Posted: 23 Jan 2019, 12:46
Hi all,
I'm new into making my own macros and having some troubles to start.
I want to make a macro to create palettes for my fixtures. I have 3 groups of fixtures. Two of those groups are blue for example, one group is red. The code I have currently written:
What (I think) it should do: select first group, apply blue colour palette. Select second group, apply blue palette. Select third group, apply red palette. Select all three groups and then it should store the created palette into the colour window workspace (replace palette with user number 113).
My question: When I try to run this macro, I can see the first group of fixtures is selected but no color information is in the programmer, so I assume the macro stops after the first step, but why?
All groups and palette information used, should be correct. (In the attachments is a screen shot of the titan interface, so you can verify the group/colour usernumbers)
Thanks in advance,
Michiel
I'm new into making my own macros and having some troubles to start.
I want to make a macro to create palettes for my fixtures. I have 3 groups of fixtures. Two of those groups are blue for example, one group is red. The code I have currently written:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<avolites.macros>
<macro id = "userMacro.createPalleteTest">
<name>Create Multi Color Pallete Test</name>
<sequence>
<step pause = "0.001"> Group.RecallGroupNumeric(100)</step>
<step pause = "0.001"> Palette.ApplyPalette("Location=Colours,2,100", false)</step>
<step pause = "0.001"> Group.RecallGroupNumeric(101)</step>
<step pause = "0.001"> Palette.ApplyPalette("Location=Colours,2,100", false)</step>
<step pause = "0.001"> Group.RecallGroupNumeric(102)</step>
<step pause = "0.001"> Palette.ApplyPalette("Location=Colours,2,101", false)</step>
<step pause = "0.001"> Group.RecallGroupNumeric(100)</step>
<step pause = "0.001"> Group.RecallGroupNumeric(101)</step>
<step pause = "0.001"> Group.RecallGroupNumeric(102)</step>
<step pause = "0.001"> Palette.ReplacePalette(113)</step>
</sequence>
</macro>
</avolites.macros>
What (I think) it should do: select first group, apply blue colour palette. Select second group, apply blue palette. Select third group, apply red palette. Select all three groups and then it should store the created palette into the colour window workspace (replace palette with user number 113).
My question: When I try to run this macro, I can see the first group of fixtures is selected but no color information is in the programmer, so I assume the macro stops after the first step, but why?
All groups and palette information used, should be correct. (In the attachments is a screen shot of the titan interface, so you can verify the group/colour usernumbers)
Thanks in advance,
Michiel