XSIA Importer/Exporter

This JScript example demonstrates writing your own importer/exporter for scene summary data using a XML file format. The example makes use of the JScript objects, which can be used to emulate object oriented behaviour.

Scene summary files represent a textual (human readable) description of the scene, including referenced models with their resolutions and deltas, groups, layers and passes. These files can be generated by the plugin to transport scenes or parts of scenes, to rebuild scenes from their basic elements or to just change key scene data such as paths of models.
Furthermore having an ASCII scene description makes it possible to generate scenes externally, switch models externally etc...

Note: This example implements its own XML parsing mechanism, it does not use parsers such as Microsoft DOM, and there are limitations to the XML file format used.

Example Files

Location
Files
xsia_plugin.js

Running the Example

To run the exporter example

  1. Select Referenced Models, Groups, Layers and/or Passes.
  2. On the main Softimage menubar, click on File, then on Export and finally on Export XSIA.
  3. Input the filename in the file-save dialog and hit OK.

Notes

Running the importer example

To run the importer example

  1. On the main Softimage menubar, click on File, then on Import and finally on Import XSIA.
  2. Input the filename in the file-save dialog and hit OK.

Notes

The XSIA object model

Retrieving a XSIA object

Object Model Description

Example uses of the object model

You cannot run these examples. They are examples of how to use the object model, not runnable scripts.

Keywords

This example uses the following keywords:

import, export, ascii, xsia, xml, example, javascript, registercommand, registermenu