User Tools

Site Tools


macros:example:timecodelivetime

This is an old revision of the document!


Example

Timecode - Set starttime to livetime and toggle source

by: Roger Pique
published: April 2020
description: Sets Timecode 1 to TimecodeOne Live Time.
remarks: Useful for timecode shows where you temporarily need to disconnect from timecode without killing all playbacks, and be able to resume timecode operation later.
See detailled description below.

functions

affected properties

Code

SetTimecodeOneLiveTime.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
 
  <macro id="Wiki.Macros.SetTimecodeOneLiveTime" name="SetTimecodeOneLiveTime">
    <description>Sets Timecode 1 to TimecodeOne Live Time.</description>
    <sequence>
      <step>Timecode.TimecodeOne.SetStartTime(Timecode.AsObservable(Timecode.TimecodeOne.LiveTime))</step>
      <step condition="Math.IsEqual(Timecode.TimecodeOne.IsControlAllowed, true)">Timecode.TimecodeOne.Reset()</step>
      <step>ActionScript.SetProperty.Enum("Timecode.TimecodeOne.Source", "Internal")</step>
      <step>Timecode.TimecodeOne.SetSource(Timecode.TimecodeOne.Source)</step>
    </sequence>
  </macro>
 
</avolites.macros>

Explanation

This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

tbd

How to use it

You could leave a comment if you were logged in.
macros/example/timecodelivetime.1723216110.txt.gz · Last modified: 2024/08/09 15:08 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki