7.3. Flash Viewer Parameter Reference

The following parameters are normally defined in the "parameters.xml" file in the model data folder. You can also directly pass these parameters to the viewer movie via the scripting interface.

Parameter

Default

Values

Notes

rotateX

0

A number between -10 and 10

Amount of spin about X-axis (horizontal axis in image).

rotateY

0

A number between -10 and 10

Amount of spin about Y-axis (vertical axis in image).

model

-

.123 filename

The model data file path relative to the model data folder. The texture map image should be in the same folder.

width

800

Integer size in pixels

The width to use for 3D model display. Only used if not using the whole stage (resizeToStage is false).

height

600

Integer size in pixels

The height to use for 3D model display. Only used if not using the whole stage (resizeToStage is false).

resizeToStage

true

true or false

If set to true the whole of the available stage will be used to display the 3D model. Use the standard width and height attributes when embeding the Flash movie in HTML to define the stage size.

controls

3dsom_controls.swf

Flash 9 (or 10) SWF movie

The Flash movie that displays the viewer control bar and interacts with the main viewer movie (see Scripting the Flash Viewer section for details). The default control bar displays a number of buttons to change the interaction mode (rotate, translate or zoom).

background

3dsom_backdrop.swf

SWF movie or image (JPG or GIF)

A movie or image that is displayed behind the viewer and controls.

cameraDistance

800

Number > 0

The distance from the camera to the object in pixels. The model is rescaled so that the default value displays the model filling the available viewer window.

cameraMinDistance

0

Number > 0

The closest the camera is allowed to the centre of the displayed object. Increase this value to restrict how far the user can zoom-in to the 3D model.

cameraMaxDistance

10000

Number > 0

The furthest the camera can be moved from the object. Decrease this value to restrict how far the user can zoom-out from the 3D model.

measureUnits

none

units string - "in", "mm", "cm", "m" or "none"

The default units to use when using the viewer measure function. If set to "none" the measure tool is disabled (unknown object size).

modelScale

100

Number > 0

The size of 1 mat unit (radius of outer circle) as marked on the calibration mat in the above units. If you printed the default sized mat (diameter 150mm) on an A4 sheet, 1 mat unit should by 75mm.