Example
by: | Alex del Bondio |
---|---|
published: | November 2018 |
description: | Changes the attribute wheels and opens the corresponding palette window |
remarks: |
adb.attributewheelsandpalettes.xml
Every button of those highlighted in the groups window in the picture basically does the following things:
The code below is an example for one attribute type (Position). The file contains macros for all attribute types.
<?xml version="1.0" encoding="utf-8"?> <avolites.macros> <macro id="adb.Macros.POS" name="Position"> <sequence> <step>Menu.InjectInput("OnSelect","AttributeGroup","NoGroup",2)</step> <step pause="0.001"> <menuLink id="Windows.Positions" stack="mainWindowStack" behaviour="PushOrRaise" maximised="True" regionId="secondary" /> </step> <step>Windows.SetWindowProperty.X("Windows.Positions", 0)</step> <step>Windows.SetWindowProperty.Y("Windows.Positions", 1)</step> <step>Windows.SetWindowProperty.Width("Windows.Positions", 2)</step> <step>Windows.SetWindowProperty.Height("Windows.Positions", 1)</step> <step>ActionScript.SetProperty.Enum("Windows.Positions.ButtonSize", "Fixed")</step> <step>ActionScript.SetProperty.Enum("Windows.Positions.TextSize", "Global")</step> <step>ActionScript.SetProperty.Integer("Windows.Positions.FixedColumns", 12)</step> <step>ActionScript.SetProperty.Integer("Windows.Positions.FixedRows", 5)</step> <step>ActionScript.SetProperty.Boolean("Windows.Positions.Pages", true)</step> <step>ActionScript.SetProperty.Integer("Windows.Positions.CurrentPage", 0)</step> <step>Windows.Scrolling.Vertical.Scroll(-100000)</step> </sequence> </macro> </avolites.macros>
This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax
Set Times
Menu.InjectInput(“OnSelect”,“AttributeGroup”,“NoGroup”,2)
selects the attribute on the wheels (1=Intensity, 2=Position, 4=Colour, 8=Gobo, 16=Beam, 32=Effects, 64=Special, 128=Shapes)<menuLink id=“Windows.Positions” stack=“mainWindowStack” behaviour=“PushOrRaise” maximised=“True” regionId=“secondary” />
opens the positions palette windowWindows.SetWindowProperty
is used to define position and size of the palette windowActionScript.SetProperty.x()
is used to set other window properties