From f40bf8cf8f3f6e0681b38e64dd67fc5801110687 Mon Sep 17 00:00:00 2001 From: Simone Gasparini Date: Tue, 28 Nov 2023 17:39:58 +0100 Subject: [PATCH] [node] add explanation to add new custom node --- source/feature-documentation/core/nodes.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/feature-documentation/core/nodes.rst b/source/feature-documentation/core/nodes.rst index c900ecc..6946d30 100644 --- a/source/feature-documentation/core/nodes.rst +++ b/source/feature-documentation/core/nodes.rst @@ -39,6 +39,13 @@ These allow the progress and performance of the process to be monitored. API +++ +You can create custom nodes in python and make them available in Meshroom using the ``MESHROOM_NODES_PATH`` environment variable. + +In a standard precompiled version of Meshroom, you can also directly add custom nodes in ``lib/meshroom/nodes``. +If the nodes are placed in a custom folder there should be a Python module (an ``__init__.py`` file is needed) in the folder for the nodes to be recognized by Meshroom, . + +To add a new node, you need to create a Python class that inherits from ``desc.Node`` or ``desc.CommandLineNode``. + Naming ######