Titania X3D Editor

Bring Colours to Your Life.

Titania v4.6.10

Bring Colours to Your Life.

X3D Reference

Introducing script use


Many actions are too complex for animation nodes:

  • Computed animation paths (eg. gravity)
  • Algorithmic shapes (eg. fractals)
  • Collaborative environments (eg. games)

You can create new sensors, interpolators, etc., using program scripts written in:

  • JavaScript - easy-to-learn language
  • ECMAScript - same as JavaScript

Syntax: Script

A Script node selects a program script to run:

  • url - choice of program script

XML Encoding

Classic Encoding

Defining the program script interface

A Script node also declares the program script interface:

  • initializeOnly, inputOnly, outputOnly, inputOutput - inputs and outputs
    • Each has a name and data type
    • Fields have an initial value

XML Encoding

Classic Encoding

A sample using a program script

XML Encoding

Classic Encoding


The Script node selects a program script, specified by a URL.

Program scripts have field and event interface declarations, each with:

  • A data type
  • A name
  • An initial value (fields only)

Cookies and other Technologies

By clicking »Accept« or continuing to use the site, you agree to the use of CREATE3000 and third-party cookies and other similar technologies to enhance your browsing experience, analyze and measure your engagement with our content, and provide more relevant ads on CREATE3000 websites and others. Learn more about cookies. You can withdraw your consent at any time.

create3000.de is going to be shut down next year, but we have a new clean and slick web site for you, go to new X_ITE web site, consider updating your X_ITE URL's, or go to new Titania web site or continue reading.