Table of Contents

Example

Attribute Wheels And Palette Windows

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.

functions

affected properties

Code

attributewheelsandbuttons.xml
<?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>

Explanation

This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

Set Times

How to use it