User Tools

Site Tools


macros:example:inhibitselectedfixtures

Differences

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

Link to this comparison view

Next revision
Previous revision
macros:example:inhibitselectedfixtures [2022/10/19 06:47] – created icke_siegenmacros:example:inhibitselectedfixtures [2022/10/20 07:10] (current) – external edit 127.0.0.1
Line 8: Line 8:
 ^ remarks: | idea by John Richardson, see https://www.facebook.com/groups/Avolites/posts/2641102656021952/ | ^ remarks: | idea by John Richardson, see https://www.facebook.com/groups/Avolites/posts/2641102656021952/ |
  
-{{tag>set dimmer selected freeze clear}}+See [[macros:example:inhibitselectedfixtures_v2|]] - that freezes only the fixtures' dimer while here we freeze the entire fixtures.
  
-==== functions ==== +{{tag>inhibit set dimmer selected freeze clear}}
-  * [[:macros:function:someusedfunction]] +
-  * [[:macros:function:anotherusedfunction]] +
-  * [[:macros:function:someusedfunction]] +
-  * [[:macros:function:anotherusedfunction]]+
  
-==== affected properties ==== +> The inhibit is just a quick way of dousing a lamp or lamps and then reinstating them without affecting anything in the programmer or within any cues. So I may be running an effect on some lamps and I just need to kill it for a second and then turn it back on without messing about with the programmer or cues.
-  * [[:macros:property:someproperty]] +
-  * [[:macros:property:anotherusedproperty]]+
  
-==== control structures ==== +The 'without messing with the programmer' part isn't possible: you need to select the fixtures which you want to inhibit before calling the macro -- and selecting fixtures brings them into the programmer. There is no way to avoid this. 
-  * [[macros:control_structures|step condition]]+ 
 +==== functions ==== 
 +  * [[:macros:function:Programmer.Editor.Fixtures.IncrementDimmer]] 
 +  * [[:macros:function:Programmer.Editor.Selection.GetSelectedHandles]] 
 +  * [[:macros:function:Fixtures.Patch.FreezeFixtures]] 
 +  * [[:macros:function:Programmer.Editor.ClearAll]]
    
 ===== Code ===== ===== Code =====
Line 61: 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]]
  
-tbd+The first macro ''Inhibit Selected Fixtures'' sets the currently selected fixtures' dimmer at 0% and freezes them: 
 +  * ''Programmer.Editor.Fixtures.IncrementDimmer'' sets the dimmer at 0 
 +  * ''Programmer.Editor.Selection.GetSelectedHandles("Windows.PatchView.Handles")'' puts the current selection into a property 
 +  * ''Programmer.Editor.Fixtures.Patch.FreezeFixtures(Windows.PatchView.Handles, True)'' freezes the fixtures which are in this property 
 +  * ''Programmer.Editor.ClearAll(false, false)'' clears the programmer 
 + 
 +The second macro ''Uninhibit Selected Fixtures'' unfreezes the currently selected fixtures: 
 +  * ''Programmer.Editor.Selection.GetSelectedHandles("Windows.PatchView.Handles")'' puts the current selection into a property 
 +  * ''Programmer.Editor.Fixtures.Patch.FreezeFixtures(Windows.PatchView.Handles, False)'' unfreezes the fixtures which are in this property 
 +  * ''Programmer.Editor.ClearAll(false, false)'' clears the programmer
  
 ===== How to use it ===== ===== How to use it =====
  
   - [[:macros:deploying|make this macro available]]   - [[:macros:deploying|make this macro available]]
- +  - in order to inhibit fixtures select them and fire the first macro 
-tbd+  - in order to uninhibit fixtures select them and fire the second macro
  
  
 ~~DISCUSSION~~ ~~DISCUSSION~~
macros/example/inhibitselectedfixtures.1666162047.txt.gz · Last modified: 2022/10/19 06:47 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki