From 1120373e67f83a80bd85e3c26cc4c57680325673 Mon Sep 17 00:00:00 2001 From: routersys Date: Sat, 4 Jul 2026 23:18:49 +0900 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E8=A8=80=E8=AA=9E=E3=83=89=E3=82=AD?= =?UTF-8?q?=E3=83=A5=E3=83=A1=E3=83=B3=E3=83=88=E3=81=B8getobject=E3=81=AE?= =?UTF-8?q?=E3=83=A1=E3=82=BF=E3=83=87=E3=83=BC=E3=82=BF=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaScript/docs/LuaScript.ar-sa.txt | 16 ++++++++++++++++ LuaScript/docs/LuaScript.en-us.txt | 16 ++++++++++++++++ LuaScript/docs/LuaScript.es-es.txt | 16 ++++++++++++++++ LuaScript/docs/LuaScript.id-id.txt | 16 ++++++++++++++++ LuaScript/docs/LuaScript.ja-jp.txt | 15 +++++++++++++++ LuaScript/docs/LuaScript.ko-kr.txt | 14 ++++++++++++++ LuaScript/docs/LuaScript.zh-cn.txt | 14 ++++++++++++++ LuaScript/docs/LuaScript.zh-tw.txt | 14 ++++++++++++++ 8 files changed, 121 insertions(+) diff --git a/LuaScript/docs/LuaScript.ar-sa.txt b/LuaScript/docs/LuaScript.ar-sa.txt index 27c01bb..1bd9ce9 100644 --- a/LuaScript/docs/LuaScript.ar-sa.txt +++ b/LuaScript/docs/LuaScript.ar-sa.txt @@ -332,10 +332,15 @@ ※ عند وجود عدة عناصر تحمل الوسم نفسه، يُعاد العنصر الظاهر في الإطار الهدف بأولوية. وإن لم يكن أي منها ظاهرًا، يُعاد أول عنصر مطابق. + ※ عناصر الصوت (أصوات مُركَّبة وغيرها) مشمولة أيضًا. بالنسبة لعنصر + صوتي، فإن الإحداثيات والمقياس والدوران والشفافية تخص عرض + الترجمة (الجيماكو) الخاص به. ※ القيم المُعادة هي إحداثيات العنصر ودورانه ومقياسه الخاصة به. ولا تتضمن التحويلات الناتجة عن التحكم بالمجموعة أو التحكم بالكاميرا أو التأثيرات الأعلى. ※ تستخدم كل قيمة نظام الوحدات نفسه المستخدم في جدول obj. + ※ .character / .text / .volume / .kind / .length امتدادات خاصة + بـ YMM4 لا توجد في AviUtl. وتعمل في كِلا المحركين. tag : النص المضبوط في ملاحظة العنصر الهدف frame : الإطار المطلق على المخطط الزمني المراد أخذه (اختياري) القيمة المُعادة : جدول معلومات الكائن. يُعيد nil عند عدم وجود @@ -355,6 +360,12 @@ .rzr : زاوية الدوران حول المحور Z (بالراديان) .alpha : الشفافية (0.0 - 255.0، مع تطبيق التلاشي) .layer : رقم الطبقة التي وُضع فيها + .length : طول العنصر (عدد الإطارات) + .volume : القيمة الحالية لإعداد مستوى الصوت (لعناصر الصوت فقط؛ وإلا 0) + .character : اسم الشخصية (لعناصر الصوت فقط؛ وإلا سلسلة فارغة) + .text : الحوار أو النص المعروض (لعناصر الصوت والنص فقط؛ + وإلا سلسلة فارغة) + .kind : اسم نوع العنصر (مثل VoiceItem، TextItem، ImageItem) مثال: local funnel = obj.getobject("funnel") if funnel then @@ -368,6 +379,11 @@ obj.x = src.x obj.y = src.y end + تغيير اللون حسب اسم الشخصية (ملاحظة الهدف هي "voice"): + local v = obj.getobject("voice") + if v and v.character == "ماريسا" then + obj.effect("أحادي اللون", "القوة", 100, "color", 0xffee55) + end ○ obj.getpixel(x, y) يسترد معلومات البكسل عند الإحداثيات المحددة. diff --git a/LuaScript/docs/LuaScript.en-us.txt b/LuaScript/docs/LuaScript.en-us.txt index 7f4dc57..c6aaac9 100644 --- a/LuaScript/docs/LuaScript.en-us.txt +++ b/LuaScript/docs/LuaScript.en-us.txt @@ -343,10 +343,15 @@ * If multiple items share the same tag, the item visible at the target frame is returned with priority. If none is visible, the first matching item is returned. + * Voice items (synthesized voices, etc.) are also targeted. For a + voice item, the coordinates, scale, rotation and opacity are + those of its caption (subtitle) display. * The returned values are the item's own coordinates, rotation and scale. Transforms from group control, camera control or upper effects are NOT included. * Each value uses the same unit system as the obj table. + * .character / .text / .volume / .kind / .length are YMM4-specific + extensions that do not exist in AviUtl. They work on both engines. tag : The string set in the target item's remark frame : The absolute timeline frame to sample (optional) Return : An object information table. Returns nil when no @@ -366,6 +371,12 @@ .rzr : Rotation angle around Z axis (radians) .alpha : Opacity (0.0 - 255.0, fade applied) .layer : Layer number where it is placed + .length : Item length (number of frames) + .volume : Current volume setting (voice items only; 0 otherwise) + .character : Character name (voice items only; empty string otherwise) + .text : Dialogue or displayed text (voice and text items only; + empty string otherwise) + .kind : Item type name (e.g. VoiceItem, TextItem, ImageItem) Example: local funnel = obj.getobject("funnel") if funnel then @@ -379,6 +390,11 @@ obj.x = src.x obj.y = src.y end + Recoloring by character name (target remark is "voice"): + local v = obj.getobject("voice") + if v and v.character == "Marisa" then + obj.effect("Monochrome", "strength", 100, "color", 0xffee55) + end o obj.getpixel(x, y) Retrieves pixel information at the specified coordinates. diff --git a/LuaScript/docs/LuaScript.es-es.txt b/LuaScript/docs/LuaScript.es-es.txt index ae6a8de..9bed32a 100644 --- a/LuaScript/docs/LuaScript.es-es.txt +++ b/LuaScript/docs/LuaScript.es-es.txt @@ -346,10 +346,15 @@ con prioridad el elemento visible en el fotograma de destino. Si ninguno es visible, se devuelve el primer elemento que coincida. + * Los elementos de voz (voces sintetizadas, etc.) también son objetivo. + Para un elemento de voz, las coordenadas, escala, rotación y + opacidad corresponden a la visualización de su subtítulo. * Los valores devueltos son las coordenadas, rotación y escala propias del elemento. NO se incluyen las transformaciones por control de grupo, control de cámara o efectos superiores. * Cada valor usa el mismo sistema de unidades que la tabla obj. + * .character / .text / .volume / .kind / .length son extensiones + propias de YMM4 que no existen en AviUtl. Funcionan en ambos motores. tag : El texto definido en la observación del elemento de destino frame : El fotograma absoluto de la línea de tiempo (opcional) Retorno : Una tabla de información del objeto. Devuelve nil cuando @@ -369,6 +374,12 @@ .rzr : Ángulo de rotación en el eje Z (radianes) .alpha : Opacidad (0.0 - 255.0, fundido aplicado) .layer : Número de capa donde está colocado + .length : Duración del elemento (número de fotogramas) + .volume : Valor actual del volumen (solo elementos de voz; 0 en otro caso) + .character : Nombre del personaje (solo elementos de voz; cadena vacía en otro caso) + .text : Diálogo o texto mostrado (solo elementos de voz y texto; + cadena vacía en otro caso) + .kind : Nombre del tipo de elemento (p. ej. VoiceItem, TextItem, ImageItem) Ejemplo: local funnel = obj.getobject("funnel") if funnel then @@ -382,6 +393,11 @@ obj.x = src.x obj.y = src.y end + Recolorear según el nombre del personaje (la observación del destino es "voice"): + local v = obj.getobject("voice") + if v and v.character == "Marisa" then + obj.effect("Monocromo", "intensidad", 100, "color", 0xffee55) + end o obj.getpixel(x, y) Obtiene información del píxel en las coordenadas especificadas. diff --git a/LuaScript/docs/LuaScript.id-id.txt b/LuaScript/docs/LuaScript.id-id.txt index 2741485..5888104 100644 --- a/LuaScript/docs/LuaScript.id-id.txt +++ b/LuaScript/docs/LuaScript.id-id.txt @@ -343,10 +343,15 @@ * Jika beberapa item berbagi tag yang sama, item yang tampil pada frame target dikembalikan dengan prioritas. Jika tidak ada yang tampil, item pertama yang cocok dikembalikan. + * Item suara (suara sintesis, dll.) juga menjadi target. Untuk item + suara, koordinat, skala, rotasi, dan opasitas adalah milik + tampilan takarir (subtitle)-nya. * Nilai yang dikembalikan adalah koordinat, rotasi, dan skala milik item itu sendiri. Transformasi dari kontrol grup, kontrol kamera, atau efek di atasnya TIDAK disertakan. * Setiap nilai menggunakan sistem satuan yang sama dengan tabel obj. + * .character / .text / .volume / .kind / .length adalah ekstensi + khusus YMM4 yang tidak ada di AviUtl. Bekerja pada kedua mesin. tag : Teks yang diatur pada catatan item target frame : Frame absolut pada lini masa yang diambil (opsional) Kembali : Tabel informasi objek. Mengembalikan nil jika tidak ada @@ -366,6 +371,12 @@ .rzr : Sudut rotasi sumbu Z (radian) .alpha : Opasitas (0.0 - 255.0, fade diterapkan) .layer : Nomor layer tempat ditempatkan + .length : Panjang item (jumlah frame) + .volume : Nilai pengaturan volume saat ini (hanya item suara; selain itu 0) + .character : Nama karakter (hanya item suara; selain itu string kosong) + .text : Dialog atau teks yang ditampilkan (hanya item suara dan teks; + selain itu string kosong) + .kind : Nama jenis item (mis. VoiceItem, TextItem, ImageItem) Contoh: local funnel = obj.getobject("funnel") if funnel then @@ -379,6 +390,11 @@ obj.x = src.x obj.y = src.y end + Mewarnai ulang berdasarkan nama karakter (catatan target adalah "voice"): + local v = obj.getobject("voice") + if v and v.character == "Marisa" then + obj.effect("Monokrom", "kekuatan", 100, "color", 0xffee55) + end o obj.getpixel(x, y) Mengambil informasi piksel pada koordinat yang ditentukan. diff --git a/LuaScript/docs/LuaScript.ja-jp.txt b/LuaScript/docs/LuaScript.ja-jp.txt index 5e5571a..ad25e90 100644 --- a/LuaScript/docs/LuaScript.ja-jp.txt +++ b/LuaScript/docs/LuaScript.ja-jp.txt @@ -334,9 +334,13 @@ ※ 同じタグを持つアイテムが複数ある場合、対象フレームで表示中の アイテムを優先して返します。表示中のものが無い場合は最初に 一致したアイテムを返します。 + ※ 音声アイテム(合成音声等)も対象になります。音声アイテムの + 座標・拡大率・回転・不透明度は字幕の表示情報を返します。 ※ 取得できる値はアイテム自身の座標・回転・拡大率です。 グループ制御・カメラ制御・上位エフェクトによる変形は含まれません。 ※ 各値は obj テーブルと同一の単位系です。 + ※ .character / .text / .volume / .kind / .length は AviUtl に存在しない + YMM4 向けの独自拡張です。両エンジンで動作します。 tag : 対象アイテムの備考に設定した文字列 frame : 取得するタイムライン上の絶対フレーム (省略可) 戻り値 : オブジェクト情報テーブル。一致するアイテムが存在しない場合は @@ -356,6 +360,12 @@ .rzr : Z 軸回転角度 (ラジアン) .alpha : 不透明度 (0.0 ~ 255.0, フェード反映済み) .layer : 配置レイヤー番号 + .length : アイテムの長さ (フレーム数) + .volume : 音量設定の現在値 (音声アイテムのみ。他は 0) + .character : キャラクター名 (音声アイテムのみ。他は空文字列) + .text : セリフまたは表示テキスト (音声・テキストアイテムのみ。 + 他は空文字列) + .kind : アイテムの種別名 (例:VoiceItem, TextItem, ImageItem) 例: local funnel = obj.getobject("funnel") if funnel then @@ -369,6 +379,11 @@ obj.x = src.x obj.y = src.y end + キャラクター名で色を変える例 (対象の備考が "voice" の場合): + local v = obj.getobject("voice") + if v and v.character == "魔理沙" then + obj.effect("単色化", "強さ", 100, "color", 0xffee55) + end ○obj.getpixel(x, y) 指定座標のピクセル情報を取得します。 diff --git a/LuaScript/docs/LuaScript.ko-kr.txt b/LuaScript/docs/LuaScript.ko-kr.txt index e621a53..47f4709 100644 --- a/LuaScript/docs/LuaScript.ko-kr.txt +++ b/LuaScript/docs/LuaScript.ko-kr.txt @@ -331,9 +331,13 @@ ※ 같은 태그를 가진 아이템이 여러 개인 경우, 대상 프레임에서 표시 중인 아이템을 우선하여 반환합니다. 표시 중인 것이 없으면 처음으로 일치한 아이템을 반환합니다. + ※ 음성 아이템(합성 음성 등)도 대상이 됩니다. 음성 아이템의 + 좌표·확대율·회전·불투명도는 자막 표시 정보를 반환합니다. ※ 취득되는 값은 아이템 자신의 좌표·회전·확대율입니다. 그룹 제어·카메라 제어·상위 이펙트에 의한 변형은 포함되지 않습니다. ※ 각 값은 obj 테이블과 동일한 단위 체계입니다. + ※ .character / .text / .volume / .kind / .length 은 AviUtl 에 없는 + YMM4 전용 확장입니다. 두 엔진 모두에서 동작합니다. tag : 대상 아이템의 비고에 설정한 문자열 frame : 취득할 타임라인의 절대 프레임 (생략 가능) 반환값 : 오브젝트 정보 테이블. 일치하는 아이템이 없으면 nil을 반환합니다. @@ -352,6 +356,11 @@ .rzr : Z축 회전 각도 (라디안) .alpha : 불투명도 (0.0 ~ 255.0, 페이드 반영됨) .layer : 배치 레이어 번호 + .length : 아이템 길이 (프레임 수) + .volume : 음량 설정의 현재 값 (음성 아이템만. 그 외는 0) + .character : 캐릭터 이름 (음성 아이템만. 그 외는 빈 문자열) + .text : 대사 또는 표시 텍스트 (음성·텍스트 아이템만. 그 외는 빈 문자열) + .kind : 아이템 종류 이름 (예: VoiceItem, TextItem, ImageItem) 예: local funnel = obj.getobject("funnel") if funnel then @@ -365,6 +374,11 @@ obj.x = src.x obj.y = src.y end + 캐릭터 이름으로 색을 바꾸는 예 (대상의 비고가 "voice"인 경우): + local v = obj.getobject("voice") + if v and v.character == "마리사" then + obj.effect("단색화", "강도", 100, "color", 0xffee55) + end ○ obj.getpixel(x, y) 지정 좌표의 픽셀 정보를 취득합니다. diff --git a/LuaScript/docs/LuaScript.zh-cn.txt b/LuaScript/docs/LuaScript.zh-cn.txt index 5cf1c3d..1c67fe2 100644 --- a/LuaScript/docs/LuaScript.zh-cn.txt +++ b/LuaScript/docs/LuaScript.zh-cn.txt @@ -322,9 +322,13 @@ ※ 指定第二个参数 frame 时,获取该时间轴帧的数值。省略时获取当前帧。 ※ 当多个项目拥有相同标签时,优先返回在目标帧显示中的项目。 若没有显示中的项目,则返回第一个匹配的项目。 + ※ 语音项目 (合成语音等) 也是对象。语音项目的坐标、缩放、 + 旋转和不透明度返回其字幕显示信息。 ※ 获取的值是项目自身的坐标、旋转和缩放。 不包含组控制、摄像机控制以及上层特效造成的变换。 ※ 各数值使用与 obj 表相同的单位体系。 + ※ .character / .text / .volume / .kind / .length 是 AviUtl 中不存在的 + YMM4 独有扩展。两种引擎均可运行。 tag : 设置在目标项目备注中的字符串 frame : 要获取的时间轴绝对帧 (可省略) 返回值 : 对象信息表。当不存在匹配项目时返回 nil。 @@ -343,6 +347,11 @@ .rzr : Z 轴旋转角度 (弧度) .alpha : 不透明度 (0.0 ~ 255.0, 已应用淡入淡出) .layer : 所在图层编号 + .length : 项目长度 (帧数) + .volume : 音量设置的当前值 (仅语音项目。其他为 0) + .character : 角色名 (仅语音项目。其他为空字符串) + .text : 台词或显示文本 (仅语音和文本项目。其他为空字符串) + .kind : 项目类别名 (例:VoiceItem, TextItem, ImageItem) 示例: local funnel = obj.getobject("funnel") if funnel then @@ -356,6 +365,11 @@ obj.x = src.x obj.y = src.y end + 按角色名改变颜色的示例 (目标备注为 "voice"): + local v = obj.getobject("voice") + if v and v.character == "魔理沙" then + obj.effect("单色化", "强度", 100, "color", 0xffee55) + end ○ obj.getpixel(x, y) 获取指定坐标的像素信息。 diff --git a/LuaScript/docs/LuaScript.zh-tw.txt b/LuaScript/docs/LuaScript.zh-tw.txt index 0cb69ef..7e1d181 100644 --- a/LuaScript/docs/LuaScript.zh-tw.txt +++ b/LuaScript/docs/LuaScript.zh-tw.txt @@ -322,9 +322,13 @@ ※ 指定第二個參數 frame 時,取得該時間軸影格的數值。省略時取得目前影格。 ※ 當多個項目擁有相同標籤時,優先回傳在目標影格顯示中的項目。 若沒有顯示中的項目,則回傳第一個相符的項目。 + ※ 語音項目 (合成語音等) 也是對象。語音項目的座標、縮放、 + 旋轉與不透明度回傳其字幕顯示資訊。 ※ 取得的值是項目自身的座標、旋轉與縮放。 不包含群組控制、攝影機控制以及上層特效造成的變換。 ※ 各數值使用與 obj 表相同的單位體系。 + ※ .character / .text / .volume / .kind / .length 是 AviUtl 中不存在的 + YMM4 獨有擴充。兩種引擎皆可運作。 tag : 設定於目標項目備註中的字串 frame : 要取得的時間軸絕對影格 (可省略) 回傳值 : 物件資訊表。當不存在相符項目時回傳 nil。 @@ -343,6 +347,11 @@ .rzr : Z 軸旋轉角度 (弧度) .alpha : 不透明度 (0.0 ~ 255.0, 已套用淡入淡出) .layer : 所在圖層編號 + .length : 項目長度 (影格數) + .volume : 音量設定的目前值 (僅語音項目。其他為 0) + .character : 角色名 (僅語音項目。其他為空字串) + .text : 台詞或顯示文字 (僅語音與文字項目。其他為空字串) + .kind : 項目類別名 (例:VoiceItem, TextItem, ImageItem) 範例: local funnel = obj.getobject("funnel") if funnel then @@ -356,6 +365,11 @@ obj.x = src.x obj.y = src.y end + 依角色名改變顏色的範例 (目標備註為 "voice"): + local v = obj.getobject("voice") + if v and v.character == "魔理沙" then + obj.effect("單色化", "強度", 100, "color", 0xffee55) + end ○ obj.getpixel(x, y) 取得指定座標的像素資訊。