From eb8f83eddc912f2bc4c5fa9969203552b585af58 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 15 Apr 2026 06:20:10 +0200 Subject: [PATCH] Add new actor control effect options --- .../project-schedule-control-options.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/scheduler/project-schedule-control-options.ts b/src/scheduler/project-schedule-control-options.ts index 0484925c..5b1fbf85 100644 --- a/src/scheduler/project-schedule-control-options.ts +++ b/src/scheduler/project-schedule-control-options.ts @@ -2,10 +2,12 @@ import type { ProjectDocument, ProjectScene } from "../document/scene-document"; import { getScenePathLabel, getScenePaths } from "../document/paths"; import { createActiveSceneControlTargetRef, + createFollowActorPathControlEffect, createActorControlTargetRef, createInteractionControlTargetRef, createLightControlTargetRef, createModelInstanceControlTargetRef, + createPlayActorAnimationControlEffect, createPlayModelAnimationControlEffect, createPlaySoundControlEffect, createSetActorPresenceControlEffect, @@ -36,6 +38,8 @@ import { listProjectNpcActors } from "../entities/npc-actor-registry"; export const PROJECT_SCHEDULE_EFFECT_OPTION_IDS = [ "actor.present", "actor.hidden", + "actor.playAnimation", + "actor.followPath", "model.playAnimation", "model.stopAnimation", "model.visible", @@ -61,7 +65,7 @@ export type ProjectScheduleEffectOptionId = export interface ProjectScheduleEffectOption { id: ProjectScheduleEffectOptionId; label: string; - valueKind: "none" | "number" | "color" | "animation"; + valueKind: "none" | "number" | "color" | "animation" | "path"; valueLabel?: string; min?: number; step?: number; @@ -123,6 +127,16 @@ const PROJECT_SCHEDULE_EFFECT_OPTIONS: Record< label: "Hidden", valueKind: "none" }, + "actor.playAnimation": { + id: "actor.playAnimation", + label: "Play Animation", + valueKind: "animation" + }, + "actor.followPath": { + id: "actor.followPath", + label: "Follow Path", + valueKind: "path" + }, "model.playAnimation": { id: "model.playAnimation", label: "Play Animation",