Commit graph

13 commits

Author SHA1 Message Date
Fabien Castan
1d4ba577a9 Apply flynt to use f-strings 2025-04-30 19:13:53 +02:00
Candice Bentéjac
f8567fb98f [desc] Node: Clean-up code 2025-04-28 18:24:58 +02:00
Candice Bentéjac
081d38f78d Stop using bare except statements 2025-04-28 17:28:10 +02:00
Fabien Castan
008d6c75ee Automatically save the project when computing or submitting to renderfarm
If the project is not saved at all, it will suggest to save it manually
or to define a project in a temporary folder using date/time for the
project name.
2025-04-13 13:09:24 +02:00
Fabien Castan
4c7ff6eb1a [core] remove duplicated function from BaseNode 2025-03-26 11:29:09 +00:00
Fabien Castan
eb9df4c900 Explicit meshroom node type in status file
Avoid an ambiguous LOCAL_ISOLATED, as a process can be extern and using
an isolated execution environement.
2025-03-25 12:28:22 +01:00
Fabien Castan
727a4d129b New notion of local isolated computation for python nodes using meshroom_compute
Reoganization
- BaseNode: is the base class for all nodes
- Node: is now dedicated to python nodes, with the implentation directly
in the process function
- CommandLineNode: dedicated to generate and run external command lines
2025-03-24 17:59:19 +01:00
Fabien Castan
3f69724788 Add some typing and str format 2025-03-24 00:07:58 +01:00
Candice Bentéjac
23901c502b [desc] Remove internalFolder in desc.Node
This is fully replaced with `{nodeCacheFolder}`.
2025-03-05 13:36:32 +00:00
Candice Bentéjac
40fd46d476 [core] Node: Add a sourceCodeFolder property
This property stores the location of the source code for a given node
and is not exposed to the QML side.
2025-03-05 13:26:53 +00:00
Yann Lanthony
90acb93ea8 [core] Trigger node desc creation callback only for explicit node creation
The desc.Node.onCreated callback is a hook in the Node API for developers to
write custom behavior on a node first initialization.
By being called in the core.Node constructor, this was triggered in several situations
that don't match this idea and with unpredictable side effects (graph loading, node re-creation on undo...).

* Make `onNodeCreated` callback an explicit method on desc.Node.
* Remove the call to node descriptor's `onNodeCreated` callback outside core.Node constructor.
* Trigger this callback on explicit node creation (adding new node to graph, init a graph from a template).
2025-02-14 11:42:22 +01:00
Yann Lanthony
82e6f65ea7 [core] Update desc.node 2024-10-30 18:41:43 +01:00
Yann Lanthony
4055d25e72 [core] Split desc.node 2024-10-30 18:41:11 +01:00
Renamed from meshroom/core/desc.py (Browse further)