Hypershade DropNote creates simple Nuke-style colored backdrops in Maya Hypershade / Node Editor.
It is meant for artists who want to visually group shader nodes and keep material graphs readable.
- Download or clone this repository.
- In Maya, open
Windows > Settings/Preferences > Plug-in Manager. - Click
Browse. - Select this file from the downloaded folder:
plug-ins/HypershadeDropNote.py
- Enable
Loaded. - Enable
Auto loadif you want Maya to load it automatically next time.
- Open Hypershade or Node Editor.
- Select graph nodes.
- Press
Shift+Bto show or hide saved DropNotes and Sticky Notes. - Press
Shift+Nto create a DropNote. - Press
Shift+Sto create a Sticky Note. - If shader nodes are selected, the new DropNote wraps them.
- If no shader nodes are selected, the new DropNote/Sticky Note appears at the view center.
- Double-click a DropNote or Sticky Note to edit it.
- Drag the top handle to move it.
- Drag a corner handle to resize it.
- Select the item and press
Deleteto remove it.
You can also run the command manually:
import maya.cmds as cmds
cmds.hypershadeDropNote()During development, run scripts/reload_dropnote.py in Maya Script Editor after editing code.
exec(open(r"PATH_TO_REPOSITORY\scripts\reload_dropnote.py").read())Hypershade DropNote 为 Maya Hypershade / Node Editor 添加 Nuke 风格的backdrop和sticky note。
它适合艺术家用来对材质节点进行视觉分组,让复杂的材质网络更清晰。
- 下载或克隆这个仓库。
- 在 Maya 中打开
Windows > Settings/Preferences > Plug-in Manager。 - 点击
Browse。 - 在下载的文件夹中选择:
plug-ins/HypershadeDropNote.py
- 勾选
Loaded。 - 如果希望 Maya 下次自动加载,可以勾选
Auto load。
- 打开 Hypershade。
- 选择节点。
- 按
Shift+B显示或隐藏已保存的 DropNote 和 Sticky Note。 - 按
Shift+N创建 DropNote。 - 按
Shift+S创建 Sticky Note。 - 如果当前选中了材质节点,新建的 DropNote 会包住这些节点。
- 如果没有选中节点,新建的 DropNote / Sticky Note会出现在当前视图中心。
- 双击 DropNote 或 Sticky Note 可以编辑。
- 拖动 DropNote 顶部手柄可以移动;Sticky Note 可直接拖动移动。
- 拖动角落手柄可以缩放。
- 选中项目后按
Delete可以删除。
也可以手动运行命令:
import maya.cmds as cmds
cmds.hypershadeDropNote()开发调试时,修改代码后可以在 Maya Script Editor 中运行 scripts/reload_dropnote.py,无需反复重启 Maya 实现实时热重载调试。
exec(open(r"PATH_TO_REPOSITORY\scripts\reload_dropnote.py").read())