Macro "Get programmer attribute on palette"

This is a place for people to chare the custom macros they have written.

Moderator: Moderators

cramboel
Posts: 4
Joined: 21 Feb 2018, 15:13

Macro "Get programmer attribute on palette"

Postby cramboel » 11 May 2019, 19:46

Hello ( i'have a bad English ),
So, i try to make a Macro that Get the current "programmer" color on my beam (" groupe : 200" ) And stock that value on my color page ( color, 2,9)

I'll already try this, work on my Titan one but not on my tigert2:
is it a thing with my pause ? can i put 0.001 on all ??
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
<macro id="UserMacro.Cyril-CurentColor(spot200)">
<name>0CurentColor(spot200)</name>
<sequence>
<step pause="0.01">ActionScript.SetProperty.Boolean("Programmer.BlindActive", true)</step>
<step pause="0.01">Programmer.SetBlindMode(false, 0)</step>
<step pause="0.01">Group.RecallGroupNumeric(200)</step>
<step pause="0.001">Menu.InjectInput("OnButtonDown","WheelView","At",1)</step>
<step pause="0.001">Menu.InjectInput("OnButtonUp","WheelView","At",1)</step>
<step pause="0.001">Menu.InjectInput("OnSelect","Softkey","NoGroup",1)</step>
<step pause="0.01">ActionScript.SetProperty("Palette.CurrentPaletteHandle", handle:"Location=Colours,2,9")</step>
<step pause="0.01">Palette.StoreCurrentPaletteReplace()</step>
<step pause="0.01">Programmer.Editor.Clear(Attribute.Mask.Clear.Value, Programmer.Editor.Fixtures.Clear.Presets, false,
Expert.ClearMenu.FadeTime)</step>
<step pause="0.01">ActionScript.SetProperty.Boolean("Programmer.BlindActive", false)</step>
<step pause="0.01">Programmer.SetBlindMode(false, 0)</step>
</sequence>
</macro>
</avolites.macros>


The final use of this thing is to make a Keyframe shape that i controll after ( with a other Maccro ( that Work ) ) -> If y tried to merge the both, my desk cant handle it hand my pallete strore nothing


The thing i would love to change is this step , It click the 3wheel color on my programmer and press Include to get the vale active in the programmer. ( i woud love the have this thing "Coded" and not like that )
<step pause="0.001">Menu.InjectInput("OnButtonDown","WheelView","At",1)</step>
<step pause="0.001">Menu.InjectInput("OnButtonUp","WheelView","At",1)</step>
<step pause="0.001">Menu.InjectInput("OnSelect","Softkey","NoGroup",1)</step>



Is this step usefull ? how ? <step>ActionScript.SetProperty("Palette.CurrentPaletteHandle", "Location=Colours,2,2")</step>

Who is online

Users browsing this forum: No registered users and 1 guest