User Tools

Site Tools


macros:example:sizemasters

Differences

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

Link to this comparison view

Next revision
Previous revision
macros:example:sizemasters [2019/04/27 10:56] – created sideshowbondmacros:example:sizemasters [2019/04/28 11:09] (current) – external edit 127.0.0.1
Line 1: Line 1:
 Example Example
  
-====== Masters - Size Master ======+====== Masters - Size Master Functions ======
  
 ^ by: | Alex del Bondio | ^ by: | Alex del Bondio |
Line 19: Line 19:
  
 ===== Code ===== ===== Code =====
-<code> 
 These are examples for Size Master 1. For other Size Masters (including Size Grand Master) please refer to the Titan IDs mentioned above These are examples for Size Master 1. For other Size Masters (including Size Grand Master) please refer to the Titan IDs mentioned above
 +<code xml sizemaster.xml>
 +<?xml version="1.0" encoding="utf-8"?>
 +<avolites.macros>
  
-Set to full +  <macro id="Macros.SizeMaster1.Full" name="Set Sizemaster 1 to full"> 
-    <step>Masters.SetMaster(1614, 1)</step> +    <sequence> 
- +      <step>Masters.SetMaster(1614, 1)</step> 
-Set to 50% +    </sequence> 
-    <step>Masters.SetMaster(1614, 0.5)</step> +  </macro> 
- +   
-Freeze (temporarily set to 0) +  <macro id="Macros.SizeMaster1.50" name="Set Sizemaster 1 to 50%"> 
-    <step>Masters.DeadBlackOut(1614)</step> +    <sequence> 
- +      <step>Masters.SetMaster(1614, 0.5)</step> 
-Unfreeze +    </sequence> 
-    <step>Masters.ClearFlash(1614)</step> +  </macro> 
- +   
-Nudge Up (add 10%) +  <macro id="Macros.SizeMaster1.Freeze" name="Set Sizemaster 1 to 0 (temp.)"> 
-    <step>Masters.NudgeUp(1614)</step> +    <sequence> 
- +      <step>Masters.DeadBlackOut(1614)</step> 
-Nudge Down (subtract 10%) +    </sequence> 
-    <step>Masters.NudgeDown(1614)</step> +  </macro> 
- +   
 +  <macro id="Macros.SizeMaster1.Unfreeze" name="Set Sizemaster 1 to previous value"> 
 +    <sequence> 
 +      <step>Masters.ClearFlash(1614)</step> 
 +    </sequence> 
 +  </macro> 
 +   
 +  <macro id="Macros.SizeMaster1.NudgeUp" name="Increase Sizemaster 1 by 10%"> 
 +    <sequence> 
 +      <step>Masters.NudgeUp(1614)</step> 
 +    </sequence> 
 +  </macro>  
 +     
 +  <macro id="Macros.SizeMaster1.NudgeDown" name="Decrease Sizemaster 1 by 10%"> 
 +    <sequence> 
 +      <step>Masters.NudgeDown(1614)</step> 
 +    </sequence> 
 +  </macro> 
 +   
 +</avolites.macros>
 </code> </code>
  
Line 53: Line 73:
  
   - [[macros:deploying|make this macro available]]   - [[macros:deploying|make this macro available]]
-  - apply when needed (you'll see the results when you have BPM masters assigned)+  - apply when needed (you'll see the results when you have the relevant master assigned)
  
  
 ~~DISCUSSION~~ ~~DISCUSSION~~
macros/example/sizemasters.1556362573.txt.gz · Last modified: 2019/04/27 10:56 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki