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
Position format: X,Y,Z (no spaces)
Set Rotation
Rotation format: X,Y,Z in degrees
Apply Preset
Start Path Flyover
Stop Camera
Camera Presets
List Presets
Create Preset
wt camera preset create \
--layout <layout-id> \
--name "Overview" \
--position "10,8,10" \
--rotation "0,45,0" \
--fov 60
Delete Preset
Camera Paths
List Paths
Create Path
Delete Path
Traffic Control
Get Current State
Output:
Set Traffic State
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
Popup Control
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
Close All Popups
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