From 9c6167d2243690aa1f06ce8c84cecddb226a6530 Mon Sep 17 00:00:00 2001 From: routersys Date: Wed, 1 Jul 2026 17:35:56 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A2=E3=83=B3=E3=82=AB=E3=83=BC=E5=BA=A7?= =?UTF-8?q?=E6=A8=99=E3=82=92=E3=83=97=E3=83=AD=E3=82=B8=E3=82=A7=E3=82=AF?= =?UTF-8?q?=E3=83=88=E3=81=B8=E4=BF=9D=E5=AD=98=E3=81=99=E3=82=8B=E7=8A=B6?= =?UTF-8?q?=E6=85=8B=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaScript/LuaScriptEffect.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/LuaScript/LuaScriptEffect.cs b/LuaScript/LuaScriptEffect.cs index 63ec0b2..78ff2a0 100644 --- a/LuaScript/LuaScriptEffect.cs +++ b/LuaScript/LuaScriptEffect.cs @@ -1,7 +1,9 @@ using System.Collections.Generic; +using System.Collections.Immutable; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Windows.Media; +using LuaScript.Anchor; using LuaScript.Compat; using Newtonsoft.Json; using YukkuriMovieMaker.Commons; @@ -293,6 +295,19 @@ namespace LuaScript return Color.FromRgb(r, g, b); } + public ImmutableList Anchors + { + get => _anchors; + set { if (Set(ref _anchors, value ?? ImmutableList.Empty)) AnchorVersion++; } + } + ImmutableList _anchors = ImmutableList.Empty; + + [JsonIgnore] + internal int AnchorVersion { get; private set; } + + internal void ApplyAnchorDrag(string group, int index, double dx, double dy, double dz) + => Anchors = AnchorSupport.ApplyDrag(Anchors, group, index, dx, dy, dz); + public override IEnumerable CreateExoVideoFilters(int keyFrameIndex, ExoOutputDescription exoOutputDescription) => []; public override IVideoEffectProcessor CreateVideoEffect(IGraphicsDevicesAndContext devices)