Skip to content

Scene Controls

Control camera and traffic from the command line.

Camera Commands

Set Camera Mode

wt camera command --layout <layout-id> --mode orbit
wt camera command --layout <layout-id> --mode fps
wt camera command --layout <layout-id> --mode flyover

Move Camera

wt camera command --layout <layout-id> --position "10,5,15"

Position format: X,Y,Z (no spaces)

Set Rotation

wt camera command --layout <layout-id> --rotation "0,45,0"

Rotation format: X,Y,Z in degrees

Apply Preset

wt camera command --layout <layout-id> --preset <preset-id>

Start Path Flyover

wt camera command --layout <layout-id> --path <path-id> --action play

Stop Camera

wt camera command --layout <layout-id> --action stop

Camera Presets

List Presets

wt camera preset list <layout-id>

Create Preset

wt camera preset create \
  --layout <layout-id> \
  --name "Overview" \
  --position "10,8,10" \
  --rotation "0,45,0" \
  --fov 60

Delete Preset

wt camera preset delete <preset-id>

Camera Paths

List Paths

wt camera path list <layout-id>

Create Path

wt camera path create \
  --layout <layout-id> \
  --name "City Tour" \
  --loop

Delete Path

wt camera path delete <path-id>

Traffic Control

Get Current State

wt traffic get

Output:

LAYOUT                                 ENABLED   DENSITY   SPEED    LABELS
550e8400-e29b-41d4-a716-446655440000   true      50%       normal   true

Set Traffic State

wt traffic set \
  --layout <layout-id> \
  --enabled \
  --density 75 \
  --speed fast

Parameters

Parameter Values Description
--enabled flag Enable traffic
--enabled=false flag Disable traffic
--density 0-100 Vehicle spawn percentage
--speed slow/normal/fast Vehicle speed

Examples

# Enable with moderate traffic
wt traffic set --layout <id> --enabled --density 50 --speed normal

# High-speed intense traffic
wt traffic set --layout <id> --enabled --density 100 --speed fast

# Disable traffic
wt traffic set --layout <id> --enabled=false

Toggle Labels

# Show labels
wt popup command --layout <layout-id> --labels-visible

# Hide labels
wt popup command --layout <layout-id> --labels-visible=false

Show Building Detail

wt popup command --layout <layout-id> --show-detail --building <building-id>

Close All Popups

wt popup command --layout <layout-id> --close-all

Scripting Examples

Presentation Mode

#!/bin/bash
LAYOUT="your-layout-id"

# Set up presentation
wt traffic set --layout $LAYOUT --enabled --density 50 --speed normal
wt popup command --layout $LAYOUT --labels-visible

# Start camera tour
wt camera command --layout $LAYOUT --path <tour-path-id> --action play

echo "Presentation started. Press Enter to stop."
read

# Stop
wt camera command --layout $LAYOUT --action stop

Incident Response

#!/bin/bash
LAYOUT="your-layout-id"
BUILDING="affected-building-id"

# Highlight incident
wt popup command --layout $LAYOUT --show-detail --building $BUILDING
wt camera command --layout $LAYOUT --position "focus-on-building"

echo "Incident highlighted. Press Enter when resolved."
read

# Clear
wt popup command --layout $LAYOUT --close-all

Monitoring Display Setup

#!/bin/bash
LAYOUT="your-layout-id"

# Configure for wall display
wt traffic set --layout $LAYOUT --enabled --density 30 --speed slow
wt popup command --layout $LAYOUT --labels-visible
wt camera command --layout $LAYOUT --mode flyover --path <loop-path>