User Tools

Site Tools


macros:example:timecodeonoff

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
macros:example:timecodeonoff [2017/11/19 13:05] icke_siegenmacros:example:timecodeonoff [2019/01/15 02:19] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Enable/Disable Timecode ======+Example 
 + 
 +====== Timecode - Enable/Disable ======
  
 ^ by: | Gregory Haynes, Mar. 2016 | ^ by: | Gregory Haynes, Mar. 2016 |
Line 6: Line 8:
 ^ remarks: | These macros are now factory default macros, and are shown here for documentation. | ^ remarks: | These macros are now factory default macros, and are shown here for documentation. |
  
 +{{tag>enable disable toggle timecode}}
 ==== functions ==== ==== functions ====
   * [[macros:function:actionscript.setproperty.boolean]]   * [[macros:function:actionscript.setproperty.boolean]]
Line 13: Line 16:
   * [[macros:property:timecode.enabled]]   * [[macros:property:timecode.enabled]]
  
-==== control structures ==== 
-  * [[:simple toggle logic]] (with aux property and if/else) 
-  
 ===== Code ===== ===== Code =====
  
Line 49: Line 49:
 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+These macros are a good example for keeping the programming core and the menu in sync - this is explained in [[macros:action_and_menus]].  
 +  * ''ActionScript.SetProperty.Boolean("Timecode.Enabled", true)'' sets the variable 'Timecode.Enabled', which in fact enables the timer AND sets the menu if the timecode menu is open. 
 +  * ''Timecode.SetEnabled(Timecode.Enabled)'' sets the timecode timer to the value the variable 'Timecode.Enabled' is set to. 
 +  * ''ActionScript.SetProperty.Boolean("Timecode.Enabled", !Timecode.Enabled)'' is explained in [[:macros:control_structures]]: it is a simple toggle logic which sets the variable 'Timecode.Enabled' to its counterpart: if it is enabled, it will be disabled - and vice versa.
  
 ===== How to use it ===== ===== How to use it =====
  
-  - [[macros:deploying|make this macro available]] +See [[macros:deploying]]. \\  
- +Fire any of the macros if you want to enable/disable/toggle the macro timer.
-tbd +
-### +
  
 ~~DISCUSSION~~ ~~DISCUSSION~~
macros/example/timecodeonoff.1511096715.txt.gz · Last modified: 2017/11/19 13:05 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki