Python Nopde API question

52 views
Skip to first unread message

Gregory Wieder

unread,
May 23, 2024, 9:22:06 AMMay 23
to AliceVision
Hello Group
I am trying to create a node in Meshroom, using the Python Node API.

Following the info from here...
https://meshroom-manual.readthedocs.io/en/latest/feature-documentation/core/nodes.html#api

I copied a pre-made node from that page (example at the bottom).  I changed the name of the node and file, so it didn't clash.  The python code was added to a local dir.
On linux, I used setenv to add the path to MESHROOM_NODES_PATH.

When I launch Meshroom, the node does not show up in the graph editor.  I also do not see any errors in the terminal.

I also tried a CommandLineNodem with just a print statement int the class/function.  Also did not work.


Am I missing any steps?  I assume I am doing something wrong.
Any help would be appreciated.


Thanks
Greg

Fabien Castan

unread,
May 24, 2024, 5:21:18 AMMay 24
to Gregory Wieder, AliceVision
You need to have a __init__.py file in the folder containing your node.


De : alice...@googlegroups.com <alice...@googlegroups.com> de la part de Gregory Wieder <gregw...@gmail.com>
Envoyé : jeudi 23 mai 2024 09:18
À : AliceVision <alice...@googlegroups.com>
Objet : Python Nopde API question
 
** CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. **

Hello Group
I am trying to create a node in Meshroom, using the Python Node API.

Following the info from here...


I copied a pre-made node from that page (example at the bottom).  I changed the name of the node and file, so it didn't clash.  The python code was added to a local dir.
On linux, I used setenv to add the path to MESHROOM_NODES_PATH.

When I launch Meshroom, the node does not show up in the graph editor.  I also do not see any errors in the terminal.

I also tried a CommandLineNodem with just a print statement int the class/function.  Also did not work.


Am I missing any steps?  I assume I am doing something wrong.
Any help would be appreciated.


Thanks
Greg

--
You received this message because you are subscribed to the Google Groups "AliceVision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alicevision...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alicevision/f70bbd7b-3301-4186-bbea-73c3ac8da378n%40googlegroups.com.

Gregory Wieder

unread,
May 26, 2024, 8:53:01 AMMay 26
to AliceVision
Thanks for the reply.
I have added a __init__.py file to  that folder.  Still didn't shpw up and no terminal errors.

For clarity, I am using the env var method, not adding the Puthon nodes to the application location.


Greg

Gregory Wieder

unread,
Jun 18, 2024, 1:26:25 AMJun 18
to AliceVision
Is no one else having any issues getting this to work?
I am really stuck in trying to fit this into our pipeline/workflow.

If I can get some custom nodes into Meshroom, I could make the data flow seamless.

Thanks
Greg

Reply all
Reply to author
Forward
0 new messages