User Tools

Site Tools


macros:example:setleecolour

This is an old revision of the document!


Example

Set Lee Colour

by: Sebastian Beutel
published: June 2025, here
description: set numeric lee colour on selected fixtures and fade this in over a time
remarks: from https://www.facebook.com/groups/Avolites/posts/3500126146786261

In order to accomplish that we abuse Palette.Numeric.InputValue, create an arbitrary group, and fade out from blind mode.

functions

affected properties

control structures

File with macros for 0, 1 and 3 seconds here: lee.xml

Code

setLeeColours.xml
?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
 
<!-- 
	Pascal Njienhuis https://www.facebook.com/groups/Avolites/posts/3500126146786261/ 
	set LEE timed colour on selected fixtures in a certain fade time 
	coded: Sebastian Beutel, June 2025
-->
 
  <macro id="Wiki.Macros.SetColourSeletec.Blind.1" name="Set Lee Colour in 1 sec">
    <sequence>
      <step>Group.CheckIfGroupExists("999", "Group.Numeric.IsValid")</step>
      <step pause="0.05" condition="Math.IsEqual(Group.Numeric.IsValid, True)">Group.ReplaceGroupOnHandle(userNumber:999)</step>
      <step pause="0.05" condition="Math.IsEqual(Group.Numeric.IsValid, False)">Group.StoreGroup(userNumber:999)</step>
      <step pause="0.01">ActionScript.SetProperty.Boolean("Programmer.BlindActive", true)</step>	
      <step pause="0.01">Programmer.SetBlindMode(false, 0)</step>
      <step>Group.RecallGroupNumeric(999)</step>
      <step>Colour.ApplyColourFilterByIndex(1, int:Palette.Numeric.InputValue)</step>
      <step pause="0.01">ActionScript.SetProperty.Boolean("Programmer.BlindActive", false)</step>	
      <step pause="0.01">Programmer.SetBlindMode(true, 1)</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/setleecolour.1749562668.txt.gz · Last modified: 2025/06/10 13:37 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki