@aura3d/scripting 1.4.3 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/CartoonNodeCategories.d.ts +0 -3
- package/dist/CartoonNodeCategories.d.ts.map +0 -1
- package/dist/CartoonNodeCategories.js +0 -9
- package/dist/CartoonNodeCategories.js.map +0 -1
- package/dist/CartoonVisualNodes.d.ts +0 -3
- package/dist/CartoonVisualNodes.d.ts.map +0 -1
- package/dist/CartoonVisualNodes.js +0 -41
- package/dist/CartoonVisualNodes.js.map +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CartoonNodeCategories.d.ts","sourceRoot":"","sources":["../../../../packages/scripting/src/CartoonNodeCategories.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,2EAOxB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CartoonNodeCategories.js","sourceRoot":"","sources":["../../../../packages/scripting/src/CartoonNodeCategories.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,OAAO;IACP,UAAU;IACV,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,YAAY;CACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CartoonVisualNodes.d.ts","sourceRoot":"","sources":["../../../../packages/scripting/src/CartoonVisualNodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAQhE,eAAO,MAAM,4BAA4B,EAAE,SAAS,oBAAoB,EAwBvE,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
const flowInput = () => ({ id: "in", direction: "input", type: "flow", optional: true });
|
|
2
|
-
const stringInput = (id, optional = false) => ({ id, direction: "input", type: "string", ...(optional ? { optional: true } : {}) });
|
|
3
|
-
const numberInput = (id, defaultValue = 0) => ({ id, direction: "input", type: "number", defaultValue });
|
|
4
|
-
const objectInput = (id, optional = false) => ({ id, direction: "input", type: "object", ...(optional ? { optional: true } : {}) });
|
|
5
|
-
const commandOutputs = () => [{ id: "out", direction: "output", type: "flow" }, { id: "command", direction: "output", type: "object" }];
|
|
6
|
-
export const cartoonVisualNodeDefinitions = [
|
|
7
|
-
node("setScene", "scene", "Set Scene", "Switch to a named cartoon scene.", [flowInput(), stringInput("sceneId")]),
|
|
8
|
-
node("transitionTo", "scene", "Transition To", "Transition to a cartoon scene with a named transition.", [flowInput(), stringInput("sceneId"), stringInput("transition", true), numberInput("duration", 0.5)]),
|
|
9
|
-
node("loadSet", "scene", "Load Set", "Load a cartoon set asset into the episode scene.", [flowInput(), stringInput("setId")]),
|
|
10
|
-
node("spawnCharacter", "scene", "Spawn Character", "Spawn a character asset at a scene position.", [flowInput(), stringInput("characterId"), objectInput("position", true)]),
|
|
11
|
-
node("sayLine", "dialogue", "Say Line", "Schedule a dialogue line for a speaker.", [flowInput(), stringInput("speakerId"), stringInput("text"), stringInput("emotion", true)]),
|
|
12
|
-
node("waitForResponse", "dialogue", "Wait For Response", "Block until a response beat or timeout.", [flowInput(), stringInput("speakerId", true), numberInput("timeout", 1)]),
|
|
13
|
-
node("setEmotion", "dialogue", "Set Emotion", "Set a character performance emotion.", [flowInput(), stringInput("characterId"), stringInput("emotion")]),
|
|
14
|
-
node("setGesture", "dialogue", "Set Gesture", "Set a character performance gesture.", [flowInput(), stringInput("characterId"), stringInput("gestureId")]),
|
|
15
|
-
node("cartoonCutTo", "camera", "Cartoon Cut To", "Cut to a named cartoon camera preset.", [flowInput(), stringInput("presetId"), stringInput("targetId", true)]),
|
|
16
|
-
node("dollyTo", "camera", "Dolly To", "Dolly the camera to a target framing.", [flowInput(), objectInput("position"), numberInput("duration", 1)]),
|
|
17
|
-
node("frameCharacter", "camera", "Frame Character", "Frame a character with composition rules.", [flowInput(), stringInput("characterId"), stringInput("composition", true)]),
|
|
18
|
-
node("shakeCamera", "camera", "Shake Camera", "Add cartoon camera shake.", [flowInput(), numberInput("intensity", 0.2), numberInput("duration", 0.25)]),
|
|
19
|
-
node("playMusic", "audio", "Play Music", "Start a music cue.", [flowInput(), stringInput("musicId"), numberInput("volume", 1)]),
|
|
20
|
-
node("stopMusic", "audio", "Stop Music", "Stop the current music cue.", [flowInput(), stringInput("musicId", true)]),
|
|
21
|
-
node("playSfx", "audio", "Play SFX", "Play a sound effect cue.", [flowInput(), stringInput("sfxId"), numberInput("volume", 1)]),
|
|
22
|
-
node("setVolume", "audio", "Set Volume", "Set an audio bus volume.", [flowInput(), stringInput("busId"), numberInput("volume", 1)]),
|
|
23
|
-
node("waitForBeat", "timing", "Wait For Beat", "Wait for a named story beat.", [flowInput(), stringInput("beatId")]),
|
|
24
|
-
node("syncToAudio", "timing", "Sync To Audio", "Synchronize downstream actions to an audio timestamp.", [flowInput(), stringInput("audioId"), numberInput("time", 0)]),
|
|
25
|
-
node("delay", "timing", "Delay", "Delay a cartoon action by seconds.", [flowInput(), numberInput("duration", 1)]),
|
|
26
|
-
node("schedule", "timing", "Schedule", "Schedule a cartoon command at a timeline time.", [flowInput(), numberInput("time", 0), stringInput("label", true)]),
|
|
27
|
-
node("captureThumbnail", "publishing", "Capture Thumbnail", "Mark a thumbnail capture time.", [flowInput(), numberInput("time", 0), stringInput("path", true)]),
|
|
28
|
-
node("exportCaption", "publishing", "Export Caption", "Export a caption track in VTT or SRT format.", [flowInput(), stringInput("format", true), stringInput("path", true)]),
|
|
29
|
-
node("markChapter", "publishing", "Mark Chapter", "Create a video chapter marker.", [flowInput(), stringInput("title"), numberInput("time", 0)])
|
|
30
|
-
];
|
|
31
|
-
function node(kind, category, title, description, inputs) {
|
|
32
|
-
return {
|
|
33
|
-
kind,
|
|
34
|
-
category,
|
|
35
|
-
title,
|
|
36
|
-
description,
|
|
37
|
-
ports: [...inputs, ...commandOutputs()],
|
|
38
|
-
oldBranchSource: ["packages/scripting/src/CartoonVisualNodes.ts"]
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=CartoonVisualNodes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CartoonVisualNodes.js","sourceRoot":"","sources":["../../../../packages/scripting/src/CartoonVisualNodes.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAgB,EAAE,IAAI,EAAE,MAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AAC3G,MAAM,WAAW,GAAG,CAAC,EAAU,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,OAAgB,EAAE,IAAI,EAAE,QAAiB,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC9J,MAAM,WAAW,GAAG,CAAC,EAAU,EAAE,YAAY,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,OAAgB,EAAE,IAAI,EAAE,QAAiB,EAAE,YAAY,EAAE,CAAC,CAAC;AACnI,MAAM,WAAW,GAAG,CAAC,EAAU,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,OAAgB,EAAE,IAAI,EAAE,QAAiB,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC9J,MAAM,cAAc,GAAG,GAAG,EAAE,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