Files
Nexus/2023/scripts/animation_tools/dwpicker/README.md
2025-11-23 23:31:18 +08:00

63 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# DreamWall Picker
Animation picker for Autodesk Maya 2017 (or higher)
## 作者
- Lionel Brouyère
- Olivier Evers
> This tool is a fork of Hotbox Designer (Lionel Brouyère).
> A menus, markmenu and hotbox designer cross DCC.
> https://github.com/luckylyk/hotbox_designer
## 功能特性
- 简单快速的 picker 创建
- 导入 2022 年之前的 AnimSchool pickers
- 在 Maya 场景中存储 picker
- 高级 picker 编辑器
- 实现 AnimSchool picker 的所有功能,甚至更多...
## 使用方法
### 在 Python 中启动
```python
import animation_tools.dwpicker
animation_tools.dwpicker.show()
```
### 带参数启动
```python
import animation_tools.dwpicker
# 只读模式
animation_tools.dwpicker.show(editable=False)
# 加载指定的 picker 文件
animation_tools.dwpicker.show(pickers=['/path/to/picker.json'])
# 忽略场景中的 pickers
animation_tools.dwpicker.show(ignore_scene_pickers=True)
```
## 模块修改说明
此模块已从原始的 dwpicker 包修改为 animation_tools.dwpicker 子模块:
1. **主模块导入**dwpicker/*.py`from dwpicker.xxx``from .xxx`
2. **一级子模块导入**designer/*.py
- 引用父模块:`from dwpicker.xxx``from ..xxx`
- 引用同级:`from .canvas` → 保持不变
3. **二级子模块导入**ingest/animschool/*.py
- 引用根模块:`from dwpicker.xxx``from ...xxx`(三个点)
- 引用同级:`from .parser` → 保持不变
4. **跨模块导入**`from dwpicker import xxx``from .. import xxx`
5. **代码执行模板**`import dwpicker``import animation_tools.dwpicker as dwpicker`
6. 保持所有原始功能不变
## 官方文档
更多信息请访问 [Official Documentation](https://dreamwall-animation.github.io/dwpicker)