layer

Return to Introduction  Previous page  Next page

Allows the run-time manipulation of a layer in a DX Studio document.

 

Properties

 

visible

gets or sets the runtime visibility of the layer

index

gets or sets the runtime index of the layer in the layers list.  Changing the index will change the order in which the layer is drawn.  The indices of other layers will change to accommodate changing this index.

scene

gets or sets the scene id (string) of the scene to be displayed in this layer.

camera

gets or sets the camera id (string) of the camera in the layer's scene to be used.

x

gets or sets the integer x position of the layer within the document.

y

gets or sets the integer y position of the layer within the document.

width

gets or sets the integer width of the layer within the document.

height

gets or sets the integer height of the layer within the document.

 

Methods

 

moveUp()

moves the layer up the layers list at runtime - layers further up the list are drawn first

moveDown()

moves the layer down the layers list at runtime - layers further down the list are drawn last

 

Examples

 

layers.layer1.camera="camera_2"; // set the layer's camera to camera_2

 

Remarks

 

See Also

 

Script Reference



Copyright ©2004 Worldweaver Ltd. DX Studio Home