Knob / slider animation: Difference between revisions

Jump to navigation Jump to search
no edit summary
m (→‎Examples: removed unrelated 2nd binding)
No edit summary
Line 249: Line 249:
  </PropertyList>
  </PropertyList>
</syntaxhighlight>
</syntaxhighlight>
Note: For the release you can simply use another property-assign with a value of 0.
Note: it has been reported that especially with a low framerate, you need to hold down a knob / slider with a <code><release></code> binding using the <code>property-assign</code> or <code>property-adjust</code> some half second instead of just clicking it, to actually make the bindings run. To work around this, use <code>property-interpolate</code> with a <code>time</code> of <code>0.01</code> or so - this works always. Example:<syntaxhighlight lang="xml" start="1">
<action>
    <binding>
        <command>property-assign</command>
        <property>instrumentation/nav/swap-button-pressed</property>
        <value>1</value>
    </binding>
</action>
<release>
    <binding>
        <command>property-interpolate</command>
        <property>instrumentation/nav/swap-button-pressed</property>
        <value>0</value>
        <time>0.01</time>
    </binding>
</release>
</syntaxhighlight>


== Related content ==
== Related content ==
97

edits

Navigation menu