User Tools

Site Tools


macros:example:inhibitselectedfixtures_v2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
macros:example:inhibitselectedfixtures_v2 [2022/10/20 06:55] – created icke_siegenmacros:example:inhibitselectedfixtures_v2 [2022/10/20 07:08] (current) icke_siegen
Line 1: Line 1:
 Example Example
  
-====== Inhibit selected fixtures ======+====== Inhibit selected fixtures dimmer ======
  
-^ by: | Sebastian Beutel |+^ by: | Sebastian Beutel, with help by Gregory Haynes |
 ^ published: | here, October 2022 | ^ published: | here, October 2022 |
 ^ description: | inhibits selected fixtures: sets them @0% and freezes | ^ description: | inhibits selected fixtures: sets them @0% and freezes |
Line 18: Line 18:
 ==== functions ==== ==== functions ====
   * [[:macros:function:Programmer.Editor.Fixtures.IncrementDimmer]]   * [[:macros:function:Programmer.Editor.Fixtures.IncrementDimmer]]
-  * [[:macros:function:Programmer.Editor.Selection.GetSelectedHandles]] +  * [[:macros:function:Programmer.Editor.Fixtures.SetContextAttributeFromId]] 
-  * [[:macros:function:Fixtures.Patch.FreezeFixtures]]+  * [[:macros:function:Programmer.Editor.Fixtures.SetSelectedControlsFrozen]]
   * [[:macros:function:Programmer.Editor.ClearAll]]   * [[:macros:function:Programmer.Editor.ClearAll]]
    
Line 43: Line 43:
   </macro>   </macro>
  
-  <macro id="Avolites.Macros.UninhibitSelectedFixtures" name="Uninhibit Selected Fixtures">+  <macro id="Avolites.Macros.UninhibitSelectedFixturesDimmer" name="Uninhibit Selected Fixtures Dimmer">
     <description>Inhibit Off</description>     <description>Inhibit Off</description>
     <sequence>     <sequence>
Line 60: Line 60:
 This explains the functional steps within the sequence. For all the other XML details please refer to [[:macros:formats_and_syntax#xml_format|Formats and syntax]] This explains the functional steps within the sequence. For all the other XML details please refer to [[:macros:formats_and_syntax#xml_format|Formats and syntax]]
  
-The first macro ''Inhibit Selected Fixtures'' sets the currently selected fixtures' dimmer at 0% and freezes them: +The first macro ''Inhibit Selected Fixtures Dimmer'' sets the currently selected fixtures' dimmer at 0% and freezes them: 
-  * ''Programmer.Editor.Fixtures.IncrementDimmer'' sets the dimmer at 0 +  * ''Programmer.Editor.Fixtures.IncrementDimmer(-10000, 1.0, true)'' sets the dimmer at 0 
-  * ''Programmer.Editor.Selection.GetSelectedHandles("Windows.PatchView.Handles")'' puts the current selection into a property +  * ''Programmer.Editor.Fixtures.SetContextAttributeFromId(16)'' makes sure we are dealing with the dimmer attribute in the next step 
-  * ''Programmer.Editor.Fixtures.Patch.FreezeFixtures(Windows.PatchView.Handles, True)'' freezes the fixtures which are in this property+  * ''Programmer.Editor.Fixtures.SetSelectedControlsFrozen(true)'' freezes the dimmer of the currently selected fixtures 
   * ''Programmer.Editor.ClearAll(false, false)'' clears the programmer   * ''Programmer.Editor.ClearAll(false, false)'' clears the programmer
  
-The second macro ''Uninhibit Selected Fixtures'' unfreezes the currently selected fixtures: +The second macro ''Uninhibit Selected Fixtures Dimmer'' unfreezes the currently selected fixtures: 
-  * ''Programmer.Editor.Selection.GetSelectedHandles("Windows.PatchView.Handles")'' puts the current selection into a property +  * ''Programmer.Editor.Fixtures.SetContextAttributeFromId(16)'' makes sure we are dealing with the dimmer attribute in the next step 
-  * ''Programmer.Editor.Fixtures.Patch.FreezeFixtures(Windows.PatchView.Handles, False)'' unfreezes the fixtures which are in this property+  * ''Programmer.Editor.Fixtures.SetSelectedControlsFrozen(false)'' unfreezes the dimmer of the currently selected fixtures 
   * ''Programmer.Editor.ClearAll(false, false)'' clears the programmer   * ''Programmer.Editor.ClearAll(false, false)'' clears the programmer
  
macros/example/inhibitselectedfixtures_v2.1666248943.txt.gz · Last modified: 2022/10/20 06:55 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki