
资源介绍
Copy nodes to and from the system clipboard as JSON
Compatibility: Blender 4.5.0+
官方介绍(中文整理)
将系统剪贴板上的节点复制为 JSON。
复制/ 帕斯特节点允许在所有节点编辑器中作为 JSON 文本复制和粘贴节点。 有些可能的用法有:
- 在不同打开的Blender实例和版本之间复制
- 在线共享节点树, 不从截图中重建。 lebnd 文件不易共享
- 通过比较 JSON 输出的差别来检查节点树版本之间的更改
使用方法
在所有节点编辑器中添加两个新的键盘快捷键: CTRL+ALT+C 和 CTRL&ALT+V (关于 macos 的 CMD)。 这将复制/ paste 节点作为文本进入系统剪贴板, 而不是 CTRL/CTRL+V 所使用的内部剪贴板。
注:生成的JSON的结构尚未最后确定, 应在阿尔法状态下加以考虑。 我希望收集对序列化有用所需的确切字段的反馈。
代码试图保持生成的 JSON 的简短, 只保存非默认字段。 这导致几乎人可以读取的输出, 但是如果该输出是手工编辑的, 很容易触发例外。 在未来版本中应该检查更多错误。
存储的结构和属性名称大多反映了节点树的内部结构。 一个例外是默认值和位置_绝对值被重新命名为 _val 和 _loc。 它们几乎出现在每一个节点, 长的名字使得输出的动词更多,实际有用的信息更难读取。
查看官方原文摘要(English)
Copy/Paste Nodes allows to copy and paste nodes in all node editors as JSON text. Some of the possible usecases are:
- Copy between different open blender instances and versions
- Share node trees online, without rebuilding from screenshots, where .blend files are not easy to share
- Check changes between node tree versions by comparing the difference in the JSON output
Usage
Two new keyboard shortcuts are added in all Node Editors: CTRL+ALT+C and CTRL+ALT+V (CMD on macos). These will copy/paste nodes as text to the system clipboard instead of the internal clipboard used by CTRL+C/CTRL+V.
NOTE: The structure of the generated JSON is NOT finalized, this should be considered in an alpha state. I hope to gather feedback on the exact fields that are necessary for the serialization to be useful.
The code tries to keep the generated JSON short, only keeping fields that are not default. This results in almost human-readable output, but it is very easy to trigger exceptions if this output is edited by hand. Quite a bit more error checking should be done in future versions.
The stored structure and property names are mostly mirroring the internal structure of the node trees. One exception is that default_value and location_absolute have been renamed to _val and _loc. They occur in almost every node, and the long names make the output much more verbose and the actual useful information less readable.
安装方法
- 打开 Blender「编辑 → 偏好设置 → 获取扩展(Get Extensions)」,搜索 Copy/Paste Nodes,可直接从官方库安装。
- 手动安装时,选择适合当前 Blender 版本与系统的 ZIP 包,在「获取扩展」右上角菜单选择「从磁盘安装(Install from Disk)」,选中 ZIP 文件,无需解压。
- 安装后,在偏好设置的「插件(Add-ons)」中确认已启用,并按作者说明使用。
下载安装包
请选择与你的 Blender 版本和操作系统相符的文件,下载由 Blender 官方扩展库提供。
正在加载安装包…
来源与许可
- 作者 / 维护者:david494
- 许可:SPDX:GPL-3.0-or-later
- 来源:Blender 官方扩展库









暂无评论内容