-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- align track item - remove version suffix
- Loading branch information
1 parent
595ffc1
commit 11af7e9
Showing
47 changed files
with
92,971 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# -*- coding=UTF-8 -*- | ||
# pyright: strict | ||
""". """ | ||
|
||
from __future__ import (absolute_import, division, print_function, | ||
unicode_literals) | ||
|
||
if True: | ||
import os | ||
import sys | ||
WORKSPACE_FOLDER = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) | ||
sys.path.insert(0, WORKSPACE_FOLDER) | ||
|
||
import wulifang.hiero | ||
|
||
wulifang.hiero.init() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Hiero 轨道项对齐 | ||
============================ | ||
|
||
按已选轨道项的时间设置其他轨道上的同名项时间, | ||
支持变速和剪切。 | ||
|
||
轨道项名称要求完全匹配,可用 :doc:`./hiero_remove_version_suffix` 移除名称中的版本。 | ||
|
||
选中项中有同名时报错。 | ||
|
||
选中项时间范围冲突时报错。 | ||
|
||
如果其他轨道上存在名称不匹配的轨道项和指定范围冲突,会被移至轨道尾部。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Hiero 移除名称中的版本 | ||
================================= | ||
|
||
批量将所选对象名称中的 ``_v{版本}`` 后缀移除。 | ||
|
||
当前仅支持对轨道项使用。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
cmd.exe /c "%~dp0\install_hiero.cmd" || PAUSE | ||
cmd.exe /c "%~dp0\install_nuke.cmd" || PAUSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@ECHO off | ||
CHCP 65001 | ||
SET "DEST=%UserProfile%\.nuke\Python\Startup" | ||
IF NOT EXIST %DEST% MKDIR %DEST% | ||
SET "FILE=%DEST%\com-wulifang-sudito-hiero-plugin-startup.py" | ||
SET "DIRNAME=%~dp0" | ||
SET "DIRNAME=%DIRNAME:\=/%" | ||
SET "TEXT=hiero.core.addPluginPath('%DIRNAME%')" | ||
|
||
ECHO # -*- coding=UTF-8 -*- > %FILE% | ||
ECHO import hiero.core >> %FILE% | ||
ECHO.>>"%FILE%" | ||
ECHO %TEXT%>>"%FILE%" | ||
ECHO 已添加 hiero 启动脚本: %FILE% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@ECHO off | ||
CHCP 65001 | ||
setlocal ENABLEDELAYEDEXPANSION | ||
SET "DIRNAME=%~dp0" | ||
SET "DIRNAME=%DIRNAME:\=/%" | ||
SET "TEXT=nuke.pluginAddPath('%DIRNAME%')" | ||
SET "FILE=%UserProfile%\.nuke\init.py" | ||
|
||
IF NOT EXIST %FILE% (ECHO import nuke > %FILE%) | ||
|
||
FIND /C /I "%TEXT%" "%FILE%" >nul 2>nul | ||
IF %ERRORLEVEL% EQU 0 (GOTO Success) | ||
|
||
ECHO.>>"%FILE%" && ECHO %TEXT%>>"%FILE%" | ||
|
||
FIND /C /I "%TEXT%" "%FILE%" >nul 2>nul | ||
IF %ERRORLEVEL% EQU 0 (GOTO Success) ELSE (GOTO Fail) | ||
|
||
:Success | ||
ECHO -----当前init.py内容------ | ||
TYPE "%FILE%" | ||
ECHO ------------------------- | ||
ECHO 安装成功 | ||
ECHO 重启Nuke即可 | ||
ECHO. | ||
GOTO :EOF | ||
|
||
:Fail | ||
ECHO 插件安装失败, 请确认能够手动编辑 %FILE% 后重试 | ||
ECHO. | ||
EXIT 1 | ||
GOTO :EOF | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding=UTF-8 -*- | ||
# pyright: strict | ||
|
||
from __future__ import absolute_import, division, print_function, unicode_literals | ||
|
||
|
||
import hiero.core | ||
import sys | ||
|
||
TYPE_CHECKING = False | ||
if TYPE_CHECKING: | ||
from typing import Text | ||
|
||
|
||
def install(p): | ||
# type: (Text) -> None | ||
sys.path.insert(0, p) | ||
hiero.core.addPluginPath(p) |
Oops, something went wrong.