You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`resource` (resource reference string, see below)
332
334
-`name` (string)
333
335
*`Prism`
334
336
-`name` (string)
@@ -343,6 +345,14 @@ The slots in a wheel have types, similar to [capability types](capability-types.
343
345
344
346
Animation Gobo slots are wider than normal gobos (sometimes they fill the whole wheel); rotating the wheel over these slots creates an animation. To model the wider slots, an `AnimationGoboEnd` slot must be used directly after an `AnimationGoboStart` slot.
345
347
348
+
#### Gobo resources
349
+
350
+
Gobos are referenced with a resource reference in the form `gobos/<gobo key>`.
351
+
352
+
Gobo resources are stored in the [`resources/gobos/`](../resources/gobos/) directory. Each one consists of a JSON file (`<gobo key>.json`) describing the gobo (with name, keywords, and a source where the gobo image was extracted from) and the gobo image itself (`<gobo key>.svg` or `<gobo key>.png`).
353
+
354
+
In the [`resources/gobos/aliases/`](../resources/gobos/aliases/) directory, sets of aliases can be defined as separate JSON files in which aliases are mapped to gobo keys. This is useful for plugins (e.g. the QLC+ import plugin knows which OFL gobo key to use when QLC+ gobo `Others/0001.svg` is referenced in a fixture). It also enables referencing gobos in fixture files with an alias like `gobos/aliases/<alias file>/<alias key>` (e.g. a Robe fixture could reference `gobos/aliases/robe/15020246-rafia`) to make validating the gobo information easier with a manual where product numbers are specified.
355
+
346
356
#### Using wheels in capabilities
347
357
348
358
In wheel-related capabilities, the `wheel` property references the wheel by its name. If the `wheel` property is not set, the channel name is used as wheel name.
Copy file name to clipboardExpand all lines: docs/fixture-model.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -71,3 +71,9 @@ export default class Fixture {
71
71
// ...
72
72
}
73
73
```
74
+
75
+
## Resource references
76
+
77
+
Resources (e.g. gobo images) are embedded by the model into the fixture JSON, i.e. instead of returning a string, `WheelSlot.resource` will return the resource object. The relevant code is in the `embedResourcesIntoFixtureJson` function in [`lib/model.js](../lib/model.js).
78
+
79
+
Thus, all information needed for the fixure is still included in the fixture JSON.
**Kind**: instance property of [<code>Resource</code>](#Resource)
2321
+
**Returns**: <code>String</code> \| <code>null</code> - The resource alias, as specified in the fixture, or null if the resource was referenced directly.
2322
+
<aname="Resource+hasImage"></a>
2323
+
2324
+
### resource.hasImage ⇒ <code>Boolean</code>
2325
+
**Kind**: instance property of [<code>Resource</code>](#Resource)
2326
+
**Returns**: <code>Boolean</code> - True if this resource has an associated image, false otherwise.
**Kind**: instance property of [<code>Resource</code>](#Resource)
2346
+
**Returns**: <code>'base64'</code> \| <code>'utf8'</code> \| <code>null</code> - The resource image's data encoding, or null if there is no image.
**Kind**: instance property of [<code>WheelSlot</code>](#WheelSlot)
2680
+
**Returns**: [<code>Resource</code>](#Resource)\| <code>String</code> \| <code>null</code> - The gobo resource object if it was previously embedded, or the gobo resource reference string, or null if no resource is specified for the slot.
0 commit comments