Skip to content

QS1 track cmd

maybites edited this page Sep 12, 2022 · 1 revision

#home/reference v1.x/<anim>/<track> <track name="(string)" fadeto="float|{expr})">

###Simple Example

<anim name="simpleRamp" duration="5s" fadeout="2s">
    <track name="t1" fadeto="2.">0. 1.</track>
    <send>/address ramp {t1}</send>
</anim>
<wait anim="simpleRamp"/>

###Attributes

  • name = the name sets the variable name for expressions. assuming the above simple example: the name 't1' translates into two variables: 't1' for use inside the same <anim> node and 'simpleRamp.t1' for use inside the same <que>
  • fadeto = if the <anim> command has defined a fadeout attribute, it will use this value to target the fadeout for this variable.

###Content A list of numbers or {expr} that signifiy different key-values during the animation.

<track name="t1" fadeto="2.">0. {expr} 10.</track>

this example defines three key values:

  • {expr} evaluated in realtime
  • 10.5

the <anim> will create a linear interpolation between those values according to its normalized time. normalized time it is a factor of the <anim> duration.

if no <keys> object exists, <anim> will distribute the three key values evenly inside the duration. if the duration is 8s:

  • value = 0. -> normalized time = 0. -> at 0s
  • value = {expr} -> normalized time = 0.5 -> at 4s
  • value = 10.5 -> normalized time = 1.0 -> at 8s

however, this distribution can be manually defined by the < keys > cmd

###Explained track is a variable that changes its value over time. the variable can be used by all {expr}

Clone this wiki locally