基于节点的工具

Geometry node groups can not just be applied to an object using a modifier. It's also possible to turn them into tools that can be invoked from the Blender menu.

You can create such tools in the 工具上下文, after which they appear in the Non-Assets menu of the 3D Viewport. If you want to move them to a different menu, reuse them in other blend-files, or share them with someone else, you need to turn them into an asset as described below.

../../_images/modeling_geometry-nodes_tools.png

Node group tools integrated in the Curves menu.

工具上下文

Because tool node groups have different settings than modifier node groups, you need to change the 几何节点类型 in the Geometry Node Editor's header to Tool in order to edit them.

When this type is selected, the data-block menu in the editor's header will only show the node groups that have the Tool Usage enabled.

  • If you create a new node group while in the Tool editor type, the Tool Usage will be enabled automatically.

  • If you want to convert an existing modifier node group, you need to manually enable the Tool Usage in the Sidebar (and optionally disable the Modifier Usage) before switching to the Tool editor type. Also make sure to set up the 支持的模式与物体类型.

Note

The inspection features are not supported in the Tool context.

资产

If you want to move a tool into a menu of your choice, reuse it in other blend-files, or share it with other people, you need to turn it into an asset. Simply right-click the node group name in the Geometry Node Editor's header and choose Mark as Asset.

Once this is done, the node group will appear in the Asset Browser's Unassigned catalog. You can then move it into a catalog named after a menu to make it appear at the end of that menu.

Finally, you can save the blend-file as an asset bundle and copy it into an asset library (described on linked page). From then on, the tool will be available in any blend-file you work with. You can also share the asset bundle file with others.

工具设置

If your tool requires any input from the user apart from the geometry to transform, you can add sockets to the Group Input node. These will be exposed in the 调整上一步操作 panel when running the tool.

支持的模式与物体类型

节点组必须指定其支持的模式和物体类型。可以使用几何节点编辑器标题栏中的弹出菜单进行配置。

Important

For mesh objects, shape keys are not supported. They will be removed if you run a node tool on the object.

工具专用节点

以下节点只在 工具 上下文中受支持:

Note

自身物体工具 节点组内时将返回活动物体。

不支持的节点

以下节点只在 修改器 上下文中受支持: