User Tools

Site Tools


macros:example:freezeselectedfixtures

This is an old revision of the document!


Example

Freeze selected fixtures

by: Gregory Haynes
published: November 2017
description: Freezes/Unfreezes the selected fixtures
remarks: http://forum.avolites.com/viewtopic.php?f=20&t=5408

functions

affected properties

control structures

  • anyspecials?

Code

FreezeSelectedFixtures.xml
<?xml version="1.0" encoding="utf-8" ?>
<avolites.macros xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Avolites.Menus.xsd">
 
  <macro id="Avolites.Macros.FreezeSelectedFixtures" name="Freeze Selected Fixtures">
    <description>Freezes the currently selected fixtures.</description>
    <sequence>
      <step>Programmer.Editor.Selection.GetSelectedHandles("Windows.PatchView.Handles")</step>
      <step>Programmer.Editor.Fixtures.Patch.FreezeFixtures(Windows.PatchView.Handles, True)</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.Macros.UnfreezeSelectedFixtures" name="Unfreeze Selected Fixtures">
    <description>Unfreezes the currently selected fixtures.</description>
    <sequence>
      <step>Programmer.Editor.Selection.GetSelectedHandles("Windows.PatchView.Handles")</step>
      <step>Programmer.Editor.Fixtures.Patch.FreezeFixtures(Windows.PatchView.Handles, False)</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

tbd

How to use it

You could leave a comment if you were logged in.
macros/example/freezeselectedfixtures.1514539037.txt.gz · Last modified: 2017/12/29 09:17 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki