User Tools

Site Tools


macros:example:releasepriority

Differences

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

Link to this comparison view

Next revision
Previous revision
macros:example:releasepriority [2018/10/04 08:23] – ↷ Page name changed from macros:example:releasepriority to macros:example:setreleasepriority icke_siegenmacros:example:releasepriority [2019/05/05 12:10] (current) icke_siegen
Line 1: Line 1:
 +Example
  
 +====== Release - Release Priority ======
 +
 +^ by: | Alex del Bondio |
 +^ published: | January 2019 |
 +^ description: | set release priority |
 +^ remarks: |  |
 +
 +{{ :macros:example:adb_release_priority.xml }}
 +
 +{{tag> release priority }}
 +
 +This selection of macros lets you change the release priority. These macros have [[:macros:active_binding]] set so they will highlight and give visual feedback.
 +
 +The code below is a snippet of the whole file which contains macros for all available release priorities.
 +
 +
 +==== affected properties ====
 +  * [[:macros:property:Playbacks.ReleasePriority]]
 +
 +
 +===== Code =====
 +<code xml releasepriority.xml>
 +<?xml version="1.0" encoding="utf-8"?>
 +<avolites.macros>
 +
 +  <macro id="adb.Macros.Release.High" name="adb Release Priority High">
 +    <active binding="{propertyLink id='Playbacks.ReleasePriority' 
 +      converter='Math.EnumAsStringEqualityConverter' 
 +      converterParameter='HighPriority'}"/>
 +    <sequence>
 +      <step>ActionScript.SetProperty.Enum("Playbacks.ReleasePriority", "HighPriority")</step>
 +    </sequence>
 +  </macro>
 +
 +</avolites.macros>
 +
 +</code>
 +
 +
 +===== Explanation =====
 +
 +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]]
 +
 +  * ''Playbacks.ReleasePriority'' is the property that defines the release priority and needs to be set via ''ActionScript.SetProperty.Enum''
 +  * ''active binding'' is used to highlight a macro when the corresponding property (''propertyLink id'') matches the ''converterParameter''. A good starting point to understand active binding is either this wiki or this post in the Avo forum [[http://forum.avolites.com/viewtopic.php?f=20&t=5962]]
 +
 +===== How to use it =====
 +
 +  * [[:macros:deploying|make this macro available]]
 +
 +~~DISCUSSION~~

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki