Howto:Animate models: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 823: Line 823:
=== Pick ===
=== Pick ===
{{Main article|Howto: Make a clickable panel#Pick}}
{{Main article|Howto: Make a clickable panel#Pick}}
=== Touch ===
The touch animation provides the normalized coordinates of a touch (or click) event on a 2d surface. The coordinates are passed in the argument and can be accessed using cmdarg() in Nasal.
    <animation>
        <type>touch</type>
        <visible>true</visible>
        <object-name>VSDImage</object-name>
        <action>
            <touch>0</touch>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>print("touch input (",cmdarg().getNode("x").getValue(),",",cmdarg().getNode("y").getValue())</script>
            </binding>
        </action>
    </animation>


== Shadow Handling ==
== Shadow Handling ==
308

edits

Navigation menu