Skip to content

Commit 70597e3

Browse files
authored
Merge pull request #2090 from keithcurtis1/master
Director and Jukebox Plus Update
2 parents dd5fe86 + cdbfacb commit 70597e3

File tree

8 files changed

+9356
-145
lines changed

8 files changed

+9356
-145
lines changed

Director/1.0.0/Director.js

Lines changed: 3230 additions & 0 deletions
Large diffs are not rendered by default.

Director/Director.js

Lines changed: 3230 additions & 0 deletions
Large diffs are not rendered by default.

Director/readme.md

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
# Director
2+
3+
**Director** is a script for supporting "theater of the mind"-style play in Roll20. It provides an interface for managing scenes, images, audio, and game assets — all organized within a persistent handout.
4+
5+
[Here is a video](https://youtu.be/TMYzFNTkiNU?si=yexMBPtz0sXNdx_o) that provides a demo of the script.
6+
7+
---
8+
9+
## Interface Overview
10+
11+
The interface appears in a Roll20 handout and consists of four main sections:
12+
13+
- **Acts & Scenes** — scene navigation and management
14+
- **Images** — backdrops, highlights, and associated tracks
15+
- **Items** — characters, variants, macros, and token-linked objects
16+
- **Utility Controls** — edit mode, help toggle, settings, backup tools
17+
18+
---
19+
20+
## Acts & Scenes
21+
22+
### Act Controls
23+
24+
Acts group together related scenes. Use the `+ Add Act` button to create one.
25+
26+
In **Edit Mode**, you can:
27+
- Rename or delete acts
28+
- Move acts up or down
29+
30+
### Scene Controls
31+
32+
Each scene represents a distinct moment or location. Click a scene name to set it active — this controls what images and items are shown.
33+
34+
In **Edit Mode**, you can:
35+
- Rename or delete scenes
36+
- Move scenes up or down (scenes moved beyond an act will join the next expanded act)
37+
38+
---
39+
40+
## Images
41+
42+
### Backdrop vs. Highlight
43+
44+
- **Backdrop**: Main background image placed on the Map Layer
45+
- **Highlights**: Visuals layered above the backdrop on the Object Layer (for focus or emphasis)
46+
47+
When a scene is set:
48+
- The backdrop is placed on the map
49+
- All highlights appear just off the left edge of the page
50+
51+
Highlights can be dragged manually, or previewed using `Shift+Z`.
52+
53+
### Adding Images
54+
55+
1. Drag a graphic to the tabletop (hold `Alt`/`Option` to preserve aspect ratio)
56+
2. Select the graphic and click `+ Add Image` in the interface
57+
58+
### Image Controls
59+
60+
- **Title**: Click to rename
61+
- **Bottom-right icons**:
62+
- `expanding arrows icon` = Set as Backdrop
63+
- `overlapping rectangles icon` = Set as Highlight
64+
- `music note icon` = Assign currently playing track. This track will auto play whenever the image becomes a backdrop image.
65+
- In **Edit Mode**:
66+
- Move an image up or down. Although the backdrop image always goes to the top
67+
- Recapture
68+
- Delete
69+
70+
### Mute Button
71+
72+
Toggles automatic track playback. When red, backdrops will no longer auto-start audio.
73+
74+
---
75+
76+
## Items (Characters, Variants, Tracks, Macros, Tables)
77+
78+
Items define what gets placed or triggered when a scene is set. Items are scoped per scene.
79+
80+
### Adding Items
81+
82+
Click a badge to add a new item:
83+
- `H` = Handout
84+
- `C` = Character
85+
- `V` = Variant
86+
- `T` = Track
87+
- `M` = Macro
88+
- `R` = Rollable Table
89+
90+
### Item Behavior
91+
92+
| Badge | Type | Behavior |
93+
|-------|------------|--------------------------------------------------------------------------|
94+
| `H` | Handout | Opens the handout |
95+
| `C` | Character | Opens the sheet if assigned; otherwise prompts for assignment |
96+
| `V` | Variant | Places token on scene set (does not open a sheet) |
97+
| `T` | Track | Toggles playback; assigns current track if none assigned |
98+
| `M` | Macro | Runs macro if assigned; otherwise prompts to choose an existing macro |
99+
| `R` | Table | Rolls the assigned table; result whispered to GM |
100+
101+
> _Variants are token snapshots that share a character sheet. Use them to represent alternate versions of a character or avoid issues with default token behavior._
102+
103+
### Edit Mode Controls
104+
105+
While in **Edit Mode**, each item displays:
106+
- `pencil icon` — Reassign
107+
- `trash icon` — Delete
108+
109+
You can also click the `magnifying glass icon` icon to filter items by type.
110+
111+
---
112+
113+
## Header Buttons
114+
115+
### Set the Scene
116+
117+
`Set the Scene` places all scene elements on the tabletop:
118+
119+
- Backdrop (Map Layer)
120+
- Highlights (Object Layer, off-page)
121+
- Items (Object Layer, off-page right)
122+
- Starts assigned track (if any)
123+
124+
> _Only works on pages named:_ `scene`, `stage`, `theater`, or `theatre`
125+
126+
### Wipe the Scene
127+
128+
`Wipe the Scene` removes all images and stops all audio.
129+
130+
> _Only works on valid stage pages._
131+
132+
### Edit Mode
133+
134+
Toggles editing. When enabled:
135+
- Rename, delete, and move controls appear for acts, scenes, and images
136+
- Items display grouped by type with assign/delete icons
137+
138+
### JB+
139+
140+
If [Jukebox Plus](https://app.roll20.net/forum/post/12417862/script-jukebox-plus-enhanced-audio-control-for-roll20) is installed, this button appears and provides a chat link to launch its controls.
141+
142+
### Help
143+
144+
Displays this help interface. While in help mode, this changes to "Exit Help".
145+
146+
### Make Help Handout
147+
148+
Creates a handout containing the help documentation. Use it to reference instructions while working in the main interface.
149+
150+
---
151+
152+
## Helpful Macros
153+
154+
These commands can be used in the chat or bound to macro/action buttons:
155+
156+
`!director --set-scene`
157+
158+
`!director --wipe-scene`
159+
160+
`!director --new-act|Act I`
161+
162+
`!director --new-scene|Act I|Opening Scene`
163+
164+
`!director --capture-image`

Director/script.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "Director",
3+
"script": "Director.js",
4+
"version": "1.0.0",
5+
"description": "# Director\n\n**Director** is a script for supporting \"theater of the mind\"-style play in Roll20. It provides an interface for managing scenes, images, audio, and game assets — all organized within a persistent handout.\n\n---\n\n## Interface Overview\n\nThe interface appears in a Roll20 handout and consists of four main sections:\n\n- **Acts & Scenes** — scene navigation and management \n- **Images** — backdrops, highlights, and associated tracks \n- **Items** — characters, variants, macros, and token-linked objects \n- **Utility Controls** — edit mode, help toggle, settings, backup tools \n\n---\n\n## Acts & Scenes\n\n### Act Controls\n\nActs group together related scenes. Use the `+ Add Act` button to create one.\n\nIn **Edit Mode**, you can:\n- Rename or delete acts\n- Move acts up or down\n\n### Scene Controls\n\nEach scene represents a distinct moment or location. Click a scene name to set it active — this controls what images and items are shown.\n\nIn **Edit Mode**, you can:\n- Rename or delete scenes\n- Move scenes up or down (scenes moved beyond an act will join the next expanded act)\n\n---\n\n## Images\n\n### Backdrop vs. Highlight\n\n- **Backdrop**: Main background image placed on the Map Layer \n- **Highlights**: Visuals layered above the backdrop on the Object Layer (for focus or emphasis) \n\nWhen a scene is set:\n- The backdrop is placed on the map\n- All highlights appear just off the left edge of the page\n\nHighlights can be dragged manually, or previewed using `Shift+Z`.\n\n### Adding Images\n\n1. Drag a graphic to the tabletop (hold `Alt`/`Option` to preserve aspect ratio) \n2. Select the graphic and click `+ Add Image` in the interface\n\n### Image Controls\n\n- **Title**: Click to rename \n- **Bottom-right icons**: \n - `expanding arrows icon` = Set as Backdrop \n - `overlapping rectangles icon` = Set as Highlight \n - `music note icon` = Assign currently playing track. This track will auto play whenever the image becomes a backdrop image.\n- In **Edit Mode**: \n - Move an image up or down. Although the backdrop image always goes to the top\n - Recapture\n - Delete\n\n### Mute Button\n\nToggles automatic track playback. When red, backdrops will no longer auto-start audio.\n\n---\n\n## Items (Characters, Variants, Tracks, Macros, Tables)\n\nItems define what gets placed or triggered when a scene is set. Items are scoped per scene.\n\n### Adding Items\n\nClick a badge to add a new item:\n- `H` = Handout \n- `C` = Character \n- `V` = Variant \n- `T` = Track \n- `M` = Macro \n- `R` = Rollable Table \n\n### Item Behavior\n\n| Badge | Type | Behavior |\n|-------|------------|--------------------------------------------------------------------------|\n| `H` | Handout | Opens the handout |\n| `C` | Character | Opens the sheet if assigned; otherwise prompts for assignment |\n| `V` | Variant | Places token on scene set (does not open a sheet) |\n| `T` | Track | Toggles playback; assigns current track if none assigned |\n| `M` | Macro | Runs macro if assigned; otherwise prompts to choose an existing macro |\n| `R` | Table | Rolls the assigned table; result whispered to GM |\n\n> Variants are token snapshots that share a character sheet. Use them to represent alternate versions of a character or avoid issues with default token behavior.\n\n### Edit Mode Controls\n\nWhile in **Edit Mode**, each item displays:\n- `pencil icon` — Reassign\n- `trash icon` — Delete\n\nYou can also click the `magnifying glass icon` icon to filter items by type.\n\n---\n\n## Header Buttons\n\n### Set the Scene\n\n`Set the Scene` places all scene elements on the tabletop:\n\n- Backdrop (Map Layer)\n- Highlights (Object Layer, off-page)\n- Items (Object Layer, off-page right)\n- Starts assigned track (if any)\n\n> Only works on pages named: `scene`, `stage`, `theater`, or `theatre`\n\n### Wipe the Scene\n\n`Wipe the Scene` removes all images and stops all audio.\n\n> Only works on valid stage pages.\n\n### Edit Mode\n\nToggles editing. When enabled:\n- Rename, delete, and move controls appear for acts, scenes, and images\n- Items display grouped by type with assign/delete icons\n\n### JB+\n\nIf Jukebox Plus is installed, this button appears and provides a chat link to launch its controls.\n\n### Help\n\nDisplays this help interface. While in help mode, this changes to \"Exit Help\".\n\n### Make Help Handout\n\nCreates a handout containing the help documentation. Use it to reference instructions while working in the main interface.\n\n---\n\n## Helpful Macros\n\nThese commands can be used in the chat or bound to macro/action buttons:\n\n`!director --set-scene`\n\n`!director --wipe-scene`\n\n`!director --new-act|Act I`\n\n`!director --new-scene|Act I|Opening Scene`\n\n`!director --capture-image`",
6+
"authors": "Keith Curtis",
7+
"roll20userid": "162065",
8+
"dependencies": [],
9+
"modifies": {
10+
"graphic": "read, write",
11+
"handout": "read, write",
12+
"character": "read, write",
13+
"jukeboxtrack": "read",
14+
"macro": "read",
15+
"rollabletable": "read"
16+
},
17+
"conflicts": [],
18+
"previousversions": ["1.0.0"]
19+
}

0 commit comments

Comments
 (0)