Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

Syntax

  • Last UpdatedApr 28, 2023
  • 1 minute read

The AVEVA™ XR engine scripting language is mostly based on XML, with a few differences and extensions.

The node definition mode and the hierarchical organization closely follows XML syntax.

Topics in this section

Code example

This is a code example of XML syntax.

<?xml version="1.0" encoding="utf-8" ?>

<ft>

<!-- global context -->

<global name="global" startup="startup">

<!-- node definitions -->

<mws name="uno" file="anim.mws"/>

<animation animation="Dummy_Macchina" start="true" loop="true"/>

<camera name="maincam" position="400 500 400" target="0 0 0" fixedUp="true"/>

<dragsensor name="drag" axis="x" inertia="0.3" />

<dragsensor name="dragy" axis="y" inertia="0.3" />

<range name="rangex" rangeMin="0" rangeMax="1" mode="CIRCULAR"/>

<!-- object connections -->

<route from="drag.addValue" to="rangex.addValue"/>

<route from="rangex.currentValue" to="maincam.yaw"/>

<range name="rangey" rangeMin="-0.3" rangeMax="0.3" mode="range"/>

<route from="dragy.addValue" to="rangey.addValue"/>

<route from="rangey.currentValue" to="maincam.pitch"/>

</global>

</ft>

Tag types

Issues contains two main tag types:

  • Node declarations (or definitions)

  • Object connections

In the code example, the two types are separated into distinct blocks. However, this is not required. It is normal to see node types in any order.

The differences between the two tag types are functional, not syntactic.

TitleResults for “How to create a CRG?”Also Available in