diff --git a/LuaScript/docs/LuaScript.ar-sa.txt b/LuaScript/docs/LuaScript.ar-sa.txt index 6dffe1b..73bc50d 100644 --- a/LuaScript/docs/LuaScript.ar-sa.txt +++ b/LuaScript/docs/LuaScript.ar-sa.txt @@ -510,6 +510,25 @@ "alpha","sx","sy","track0"~"track3","time","frame" إلخ. المُرجَع : رقم (0 لهدف غير معروف). + ○ obj.getinfo(name) + يحصل على معلومات بيئية متنوعة. الاسم غير المدعوم يُرجِع nil. + "script_path" : يُرجِع مسار مجلد تثبيت الإضافة. ينتهي بفاصل مسار. + "filter" : يُرجِع ما إذا كانت المعالجة تجري كتأثير مُرشِّح. هذه + الإضافة تُرجِع true دائمًا. + "saving" : يُرجِع ما إذا كان الفيديو قيد التصدير (true أثناء + التصدير فقط). + "image_max" : يُرجِع الحجم الأقصى للصورة كعرض وارتفاع. + "bpm" : يُرجِع إيقاع شبكة BPM والميزان والزمن المرجعي + (بالثواني). يكون الإيقاع 0 عند عدم ضبط شبكة BPM. + "clock" : يُرجِع الزمن المنقضي منذ بدء YMM4 بالثواني. + "script_time" : يُرجِع الزمن المنقضي منذ بدء السكربت بالمِلّي ثانية. + "version" : يُرجِع إصدار المضيف كرقم + major*10000 + minor*100 + build. + يعمل في كلا المحركين. + مثال: if obj.getinfo("saving") == false then + obj.drawpoly(...) -- إظهار إطار أثناء التحرير فقط + end + ○ obj.setoption(name, value) / obj.getoption(name) يضبط / يحصل على خيار. الخيارات غير المدعومة تُقبَل كي لا توقف النص (getoption يُرجع القيمة المحفوظة، و0 إن لم تُضبط). @@ -784,7 +803,7 @@ يُدعم الرسم والتركيب عبر obj.draw / obj.drawpoly، وعمليات المخزن عبر obj.copybuffer، والتوليد والتحميل عبر obj.load("figure"/"text"/"image"/"movie")، و obj.setfont، و obj.effect، - و obj.getvalue، و obj.setoption / obj.getoption / obj.pixeloption. + و obj.getvalue، و obj.getinfo، و obj.setoption / obj.getoption / obj.pixeloption. انظر "جدول obj - الدوال" للتفاصيل. ○ خريطة توافق AviUtl / AviUtl2 لـ obj.effect diff --git a/LuaScript/docs/LuaScript.en-us.txt b/LuaScript/docs/LuaScript.en-us.txt index d1b27df..9210fe2 100644 --- a/LuaScript/docs/LuaScript.en-us.txt +++ b/LuaScript/docs/LuaScript.en-us.txt @@ -527,6 +527,28 @@ "alpha","sx","sy","track0"~"track3","time","frame", etc. Returns: a number (0 for an unknown target). + o obj.getinfo(name) + Gets various environment information. An unsupported name returns nil. + "script_path" : Returns the path of the plugin install folder. It + ends with a path separator. + "filter" : Returns whether a filter effect is being processed. + This plugin always returns true. + "saving" : Returns whether the video is being exported + (true only while exporting). + "image_max" : Returns the maximum image size as width, height. + "bpm" : Returns the BPM grid tempo, beat, and reference time + (seconds). The tempo is 0 when no BPM grid is set. + "clock" : Returns the elapsed time since YMM4 started, in + seconds. + "script_time" : Returns the elapsed time since the script started, + in milliseconds. + "version" : Returns the host version as the number + major*10000 + minor*100 + build. + Works in both engines. + Example: if obj.getinfo("saving") == false then + obj.drawpoly(...) -- show a frame only while editing + end + o obj.setoption(name, value) / obj.getoption(name) Sets / gets an option. Unsupported options are accepted so they do not stop the script (getoption returns the stored value, 0 if unset). @@ -812,7 +834,7 @@ Drawing and compositing with obj.draw / obj.drawpoly, buffer operations with obj.copybuffer, generation and loading with obj.load("figure"/"text"/"image"/"movie"), obj.setfont, obj.effect, - obj.getvalue, and obj.setoption / obj.getoption / obj.pixeloption are + obj.getvalue, obj.getinfo, and obj.setoption / obj.getoption / obj.pixeloption are supported. See "obj Table - Functions" for details. o AviUtl / AviUtl2 compatibility map for obj.effect diff --git a/LuaScript/docs/LuaScript.es-es.txt b/LuaScript/docs/LuaScript.es-es.txt index 2b31fda..c97f2b9 100644 --- a/LuaScript/docs/LuaScript.es-es.txt +++ b/LuaScript/docs/LuaScript.es-es.txt @@ -527,6 +527,30 @@ "alpha","sx","sy","track0"~"track3","time","frame", etc. Devuelve: un número (0 para un target desconocido). + o obj.getinfo(nombre) + Obtiene diversa información del entorno. Un nombre no admitido + devuelve nil. + "script_path" : Devuelve la ruta de la carpeta de instalación del + plugin. Termina con un separador de ruta. + "filter" : Devuelve si se está procesando como efecto de filtro. + Este plugin siempre devuelve true. + "saving" : Devuelve si se está exportando el vídeo + (true solo durante la exportación). + "image_max" : Devuelve el tamaño máximo de imagen como ancho, alto. + "bpm" : Devuelve el tempo, el compás y el tiempo de + referencia (segundos) de la cuadrícula BPM. El tempo + es 0 cuando no hay cuadrícula BPM configurada. + "clock" : Devuelve el tiempo transcurrido desde que se inició + YMM4, en segundos. + "script_time" : Devuelve el tiempo transcurrido desde que empezó el + script, en milisegundos. + "version" : Devuelve la versión del host como el número + major*10000 + minor*100 + build. + Funciona en ambos motores. + Ejemplo: if obj.getinfo("saving") == false then + obj.drawpoly(...) -- mostrar un marco solo al editar + end + o obj.setoption(nombre, valor) / obj.getoption(nombre) Establece / obtiene una opción. Las opciones no admitidas se aceptan para no detener el script (getoption devuelve el valor guardado, 0 si @@ -822,7 +846,7 @@ Se admiten el dibujo y composición con obj.draw / obj.drawpoly, las operaciones de búfer con obj.copybuffer, la generación y carga con obj.load("figure"/"text"/"image"/"movie"), obj.setfont, obj.effect, - obj.getvalue y obj.setoption / obj.getoption / obj.pixeloption. + obj.getvalue, obj.getinfo y obj.setoption / obj.getoption / obj.pixeloption. Consulte "Tabla obj - Funciones" para más detalles. o Mapa de compatibilidad AviUtl / AviUtl2 para obj.effect diff --git a/LuaScript/docs/LuaScript.id-id.txt b/LuaScript/docs/LuaScript.id-id.txt index 5c6df74..0b87b90 100644 --- a/LuaScript/docs/LuaScript.id-id.txt +++ b/LuaScript/docs/LuaScript.id-id.txt @@ -525,6 +525,31 @@ "alpha","sx","sy","track0"~"track3","time","frame", dll. Mengembalikan: sebuah angka (0 untuk target yang tidak dikenal). + o obj.getinfo(name) + Mengambil berbagai informasi lingkungan. Nama yang tidak didukung + mengembalikan nil. + "script_path" : Mengembalikan jalur folder pemasangan plugin. + Diakhiri dengan pemisah jalur. + "filter" : Mengembalikan apakah sedang diproses sebagai efek + filter. Plugin ini selalu mengembalikan true. + "saving" : Mengembalikan apakah video sedang diekspor + (true hanya selama ekspor). + "image_max" : Mengembalikan ukuran gambar maksimum sebagai lebar, + tinggi. + "bpm" : Mengembalikan tempo, ketukan, dan waktu acuan (detik) + dari grid BPM. Tempo bernilai 0 bila grid BPM belum + diatur. + "clock" : Mengembalikan waktu berlalu sejak YMM4 dijalankan, + dalam detik. + "script_time" : Mengembalikan waktu berlalu sejak skrip dimulai, + dalam milidetik. + "version" : Mengembalikan versi host sebagai angka + major*10000 + minor*100 + build. + Bekerja di kedua mesin. + Contoh: if obj.getinfo("saving") == false then + obj.drawpoly(...) -- tampilkan bingkai hanya saat mengedit + end + o obj.setoption(name, value) / obj.getoption(name) Mengatur / mengambil opsi. Opsi yang tidak didukung tetap diterima sehingga tidak menghentikan skrip (getoption mengembalikan nilai @@ -816,7 +841,7 @@ Penggambaran dan komposisi dengan obj.draw / obj.drawpoly, operasi buffer dengan obj.copybuffer, pembuatan dan pemuatan dengan obj.load("figure"/"text"/"image"/"movie"), obj.setfont, obj.effect, - obj.getvalue, serta obj.setoption / obj.getoption / obj.pixeloption + obj.getvalue, obj.getinfo, serta obj.setoption / obj.getoption / obj.pixeloption didukung. Lihat "Tabel obj - Fungsi" untuk detailnya. o Peta kompatibilitas AviUtl / AviUtl2 untuk obj.effect diff --git a/LuaScript/docs/LuaScript.ja-jp.txt b/LuaScript/docs/LuaScript.ja-jp.txt index 9f83956..84613e9 100644 --- a/LuaScript/docs/LuaScript.ja-jp.txt +++ b/LuaScript/docs/LuaScript.ja-jp.txt @@ -511,6 +511,25 @@ "alpha","sx","sy","track0"~"track3","time","frame" 等。 戻り値 : 数値(未知の対象は 0)。 + ○obj.getinfo(名前) + 各種の環境情報を取得します。未対応の名前は nil を返します。 + "script_path" : プラグインの設置フォルダのパスを返します。末尾に + 区切り文字が付きます。 + "filter" : フィルタ効果として処理中かどうかを返します。本 + プラグインでは常に true になります。 + "saving" : 動画を出力中かどうかを返します(出力中のみ true)。 + "image_max" : 最大画像サイズを幅, 高さの2値で返します。 + "bpm" : BPMグリッドのテンポ, 拍子, 基準時間(秒)を返します。 + BPMグリッドが未設定のときテンポは 0 になります。 + "clock" : YMM4起動からの経過時間を秒で返します。 + "script_time" : スクリプト実行開始からの経過時間をミリ秒で返します。 + "version" : 本体のバージョンを major×10000+minor×100+build の + 数値で返します。 + 両エンジンで動きます。 + 例:if obj.getinfo("saving") == false then + obj.drawpoly(...) -- 編集中のみ枠を表示する + end + ○obj.setoption(名前, 値) / obj.getoption(名前) オプションを設定 / 取得します。未対応の項目も受理してスクリプトを 停止させません(getoption は設定値を返し、未設定は 0)。 @@ -790,7 +809,7 @@ ○描画・合成・読み込み obj.draw / obj.drawpoly による描画合成、obj.copybuffer による バッファ操作、obj.load("figure"/"text"/"image"/"movie") による生成・ - 読み込み、obj.setfont、obj.effect、obj.getvalue、obj.setoption / + 読み込み、obj.setfont、obj.effect、obj.getvalue、obj.getinfo、obj.setoption / obj.getoption / obj.pixeloption に対応します。詳細は「obj テーブル - 関数」を参照してください。 diff --git a/LuaScript/docs/LuaScript.ko-kr.txt b/LuaScript/docs/LuaScript.ko-kr.txt index 04295c4..b4dfe9c 100644 --- a/LuaScript/docs/LuaScript.ko-kr.txt +++ b/LuaScript/docs/LuaScript.ko-kr.txt @@ -506,6 +506,25 @@ "alpha","sx","sy","track0"~"track3","time","frame" 등. 반환값 : 숫자(알 수 없는 대상은 0). + ○ obj.getinfo(이름) + 각종 환경 정보를 가져옵니다. 지원하지 않는 이름은 nil을 반환합니다. + "script_path" : 플러그인 설치 폴더의 경로를 반환합니다. 끝에 경로 + 구분 문자가 붙습니다. + "filter" : 필터 효과로 처리 중인지 반환합니다. 이 플러그인은 + 항상 true를 반환합니다. + "saving" : 동영상을 출력 중인지 반환합니다(출력 중에만 true). + "image_max" : 최대 이미지 크기를 너비, 높이 두 값으로 반환합니다. + "bpm" : BPM 그리드의 템포, 박자, 기준 시간(초)을 반환합니다. + BPM 그리드가 설정되지 않았을 때 템포는 0입니다. + "clock" : YMM4 시작 이후 경과 시간을 초 단위로 반환합니다. + "script_time" : 스크립트 실행 시작 이후 경과 시간을 밀리초로 반환합니다. + "version" : 본체 버전을 major×10000+minor×100+build 숫자로 + 반환합니다. + 두 엔진 모두에서 작동합니다. + 예: if obj.getinfo("saving") == false then + obj.drawpoly(...) -- 편집 중에만 테두리 표시 + end + ○ obj.setoption(이름, 값) / obj.getoption(이름) 옵션을 설정 / 가져옵니다. 지원하지 않는 항목도 받아들여 스크립트를 중단시키지 않습니다(getoption은 설정값을 반환, 미설정은 0). @@ -783,7 +802,7 @@ ○ 그리기·합성·로드 obj.draw / obj.drawpoly에 의한 그리기 합성, obj.copybuffer에 의한 버퍼 조작, obj.load("figure"/"text"/"image"/"movie")에 의한 생성·로드, - obj.setfont, obj.effect, obj.getvalue, 그리고 obj.setoption / + obj.setfont, obj.effect, obj.getvalue, obj.getinfo, 그리고 obj.setoption / obj.getoption / obj.pixeloption을 지원합니다. 자세한 내용은 "obj 테이블 - 함수"를 참조하세요. diff --git a/LuaScript/docs/LuaScript.zh-cn.txt b/LuaScript/docs/LuaScript.zh-cn.txt index d9375dc..33ea355 100644 --- a/LuaScript/docs/LuaScript.zh-cn.txt +++ b/LuaScript/docs/LuaScript.zh-cn.txt @@ -496,6 +496,22 @@ "alpha","sx","sy","track0"~"track3","time","frame" 等。 返回值 : 数值(未知目标返回 0)。 + ○ obj.getinfo(名称) + 获取各种环境信息。不支持的名称返回 nil。 + "script_path" : 返回插件安装文件夹的路径,末尾带有路径分隔符。 + "filter" : 返回是否正在作为滤镜效果处理。本插件始终返回 true。 + "saving" : 返回是否正在导出视频(仅导出时为 true)。 + "image_max" : 以宽度, 高度两个值返回最大图像尺寸。 + "bpm" : 返回 BPM 网格的速度, 拍号, 基准时间(秒)。 + 未设置 BPM 网格时速度为 0。 + "clock" : 以秒返回自 YMM4 启动以来的经过时间。 + "script_time" : 以毫秒返回自脚本开始执行以来的经过时间。 + "version" : 以 major×10000+minor×100+build 的数值返回本体版本。 + 在两个引擎中均可使用。 + 示例:if obj.getinfo("saving") == false then + obj.drawpoly(...) -- 仅在编辑时显示框线 + end + ○ obj.setoption(名称, 值) / obj.getoption(名称) 设置 / 获取选项。未支持的项目也会被接受,不会中断脚本 (getoption 返回设置值,未设置为 0)。 @@ -757,7 +773,7 @@ ○ 绘制·合成·加载 支持 obj.draw / obj.drawpoly 的绘制合成、obj.copybuffer 的缓冲区操作、 obj.load("figure"/"text"/"image"/"movie") 的生成与加载、obj.setfont、 - obj.effect、obj.getvalue 以及 obj.setoption / obj.getoption / + obj.effect、obj.getvalue、obj.getinfo 以及 obj.setoption / obj.getoption / obj.pixeloption。详情请参阅“obj 表 - 函数”。 ○ obj.effect 的 AviUtl / AviUtl2 兼容映射 diff --git a/LuaScript/docs/LuaScript.zh-tw.txt b/LuaScript/docs/LuaScript.zh-tw.txt index 586af3a..63f55f9 100644 --- a/LuaScript/docs/LuaScript.zh-tw.txt +++ b/LuaScript/docs/LuaScript.zh-tw.txt @@ -496,6 +496,22 @@ "alpha","sx","sy","track0"~"track3","time","frame" 等。 回傳值 : 數值(未知目標回傳 0)。 + ○ obj.getinfo(名稱) + 取得各種環境資訊。未支援的名稱回傳 nil。 + "script_path" : 回傳外掛安裝資料夾的路徑,結尾附有路徑分隔字元。 + "filter" : 回傳是否正在作為濾鏡效果處理。本外掛始終回傳 true。 + "saving" : 回傳是否正在輸出影片(僅輸出時為 true)。 + "image_max" : 以寬度, 高度兩個值回傳最大影像尺寸。 + "bpm" : 回傳 BPM 格線的速度, 拍號, 基準時間(秒)。 + 未設定 BPM 格線時速度為 0。 + "clock" : 以秒回傳自 YMM4 啟動以來的經過時間。 + "script_time" : 以毫秒回傳自腳本開始執行以來的經過時間。 + "version" : 以 major×10000+minor×100+build 的數值回傳本體版本。 + 在兩個引擎中皆可使用。 + 範例:if obj.getinfo("saving") == false then + obj.drawpoly(...) -- 僅在編輯時顯示框線 + end + ○ obj.setoption(名稱, 值) / obj.getoption(名稱) 設定 / 取得選項。未支援的項目也會被接受,不會中斷腳本 (getoption 回傳設定值,未設定為 0)。 @@ -758,7 +774,7 @@ ○ 繪製·合成·載入 支援 obj.draw / obj.drawpoly 的繪製合成、obj.copybuffer 的緩衝區操作、 obj.load("figure"/"text"/"image"/"movie") 的產生與載入、obj.setfont、 - obj.effect、obj.getvalue 以及 obj.setoption / obj.getoption / + obj.effect、obj.getvalue、obj.getinfo 以及 obj.setoption / obj.getoption / obj.pixeloption。詳情請參閱「obj 表 - 函式」。 ○ obj.effect 的 AviUtl / AviUtl2 相容對應表