Commit graph

92 commits

Author SHA1 Message Date
Candice Bentéjac
e11452efdb Extend copy/paste support to selections containing multiple nodes 2022-08-25 11:08:57 +02:00
Candice Bentéjac
5b65866e49 [ui] Paste a node on the mouse's position
When creating a node with a "paste" operation, place the node
on the mouse's position in the graph instead of default position (0,0).

If the mouse is placed on an existing node, the pasted node will be
placed on the mouse's position plus an offset so that the pasted node
does not directly overlap with the existing node.
2022-08-19 12:02:09 +02:00
Candice Bentéjac
ddda62a652 Add node to graph with Ctrl+V if valid node content is in the clipboard
Attempt to paste the clipboard's content in the graph when Ctrl+V is
pressed. If the clipboard contains a valid node description, add the
corresponding node to the graph.
Otherwise, do nothing.
2022-08-19 12:00:16 +02:00
Candice Bentéjac
751bad96c6 Copy selected node's content to the clipboard when Ctrl+C is pressed
When Ctrl+C is pressed while a node selected, its content is formatted
to JSON and copied to the system's clipboard.
2022-08-19 11:31:31 +02:00
Candice Bentéjac
819d9e3e70 Prevent duplication/removal a node more than once in the same action 2022-07-28 14:13:38 +02:00
Candice Bentéjac
c4c8b5c8d5 [ui] Vertically align duplicated nodes correctly
When a node is duplicated more than once in a single "duplicate"
operation, it happens that several of the duplicated nodes
overlap. This patch takes into account all the newly duplicated
(and already moved) nodes before moving them into their final
position.
2022-07-28 14:13:38 +02:00
luz paz
f4dcf6557f Fix various typos in the source code
## Description
Fix various typos in the source code. This includes user facing code, documentation, and source comments. This PR has not been tested.
Closes #1605
2022-01-22 07:39:05 -05:00
Nils Landrodie
db299d49ee [python] Remove trailing whitespaces 2021-09-14 18:07:30 +02:00
Landrodie
9b753cc358 [Python Graph] Expose modification group methods 2021-09-14 18:07:26 +02:00
Landrodie
79955ddae6 [core] Change attribute name and label properties
Adding new properties and updating the call to previous ones.
Properties are now :
* label : getLabel
* fullLabel : getFullLabel
* fullLabelToNode : getFullLabelToNode
* fullLabelToGraph : getFullLabelToGraph

Same for the name.
2021-08-23 17:52:40 +02:00
Fabien Castan
90f184d65e [ui] fix: ensure that the computing status is always correct
Avoid to get a "stop" button when there is nothing currently computing.
2021-05-26 00:12:50 +02:00
Fabien Castan
18be350e6f
Merge pull request #1227 from ChemicalXandco/box_select
[ui] add support for selecting multiple nodes at once
2021-05-03 23:42:11 +02:00
ChemicalXandco
fdfabf0066 [ui] GraphEditor: use entire node selection when handling '_ from here' operations 2021-04-18 14:33:17 +01:00
ChemicalXandco
e8a5491178 [ui] GraphEditor: select duplicated nodes and select following nodes on alt + left click 2021-04-14 23:14:51 +01:00
ChemicalXandco
3ea721a2ed [ui] GraphEditor: allow replacing edges 2021-04-09 16:28:15 +01:00
ChemicalXandco
55b16bc6d3 [tests] update node duplication test 2021-02-03 22:29:31 +00:00
ChemicalXandco
acf1bf2116 [ui] grapheditor: explicitly pass selected nodes argument 2021-01-26 21:13:16 +00:00
ChemicalXandco
c253e7d363 [ui] add support for selecting multiple nodes at once 2021-01-15 18:16:45 +00:00
Fabien Castan
a17bc3d5f4 [ui] graph: minor code change for readability 2021-01-04 13:49:14 +01:00
Fabien Castan
bdb0cadc39 [ui] graph: fix missing argument 2020-12-30 18:41:01 +01:00
Fabien Castan
d291fcc39d [core] graph: use new dependenciesOnly option on graph operations
Input attribute to input attribute connection is not a real dependency between the nodes.
2020-12-14 19:02:49 +01:00
Julien-Haudegond
b567d8ff5c [core] Graph: change default reverse direction in dfsOnDiscover() 2020-09-04 12:42:05 +02:00
Julien-Haudegond
208749d897 [core] Graph: change signature of dfsOnDiscover() 2020-09-04 12:22:20 +02:00
Julien-Haudegond
f8bd40ad38 [core] Graph: rename nodesFromNode() to dfsOnDiscover() 2020-09-04 11:49:45 +02:00
Julien-Haudegond
3f3a6c0e83 [core/bin] Submitting: remove a duplicate function and move another one 2020-09-03 18:23:55 +02:00
Julien-Haudegond
5f444e6810 [ui] Commands: handle undo stack while computing and submitting
Computing: lock the undo stack at the current index to avoid going back too far and potentially alter computing process.
Submitting: clear the undo stack.
2020-09-02 11:30:12 +02:00
Julien-Haudegond
e0389ad957 [ui] move UndoStack and TaskManager instantiations into app.py 2020-08-31 17:43:17 +02:00
Julien-Haudegond
58790e3bce [core] TaskManager: restart/block thread when stop computing
- If global stop: block restarting thread.
- If local stop: restart thread with the remaining nodes to compute.

This implementation permits to avoid app freezing when a local stop occurs.
2020-08-31 13:13:59 +02:00
Julien-Haudegond
f502625c0b [core] TaskManager: change removeNode() and add containsNodeName() 2020-08-31 11:38:50 +02:00
Julien-Haudegond
eaad870fc4 [ui] Graph: remove useless _execute method 2020-08-27 12:24:33 +02:00
Julien-Haudegond
79e1c69d5d Merge remote-tracking branch 'origin/develop' into dev/nodesAndTaskManager 2020-08-24 15:19:31 +02:00
Julien-Haudegond
ba1994deb9 [core/ui] replace and remove depending/required nodes methods 2020-08-24 11:59:03 +02:00
Julien-Haudegond
f41565f26b [ui] Graph: stop and cancel node computation 2020-08-20 16:20:55 +02:00
Julien-Haudegond
b9e68b7c3e [ui] Graph: change setGraph and clear 2020-08-17 11:45:17 +02:00
Fabien Castan
bab908d2eb Merge branch 'develop' into dev/nodesAndTaskManager 2020-07-30 10:56:19 +02:00
Fabien Castan
a15bb93def [ui] auto layout when no position on nodes 2020-07-17 20:48:02 +02:00
Fabien Castan
0e434908a5 [ui] improve open recent files
* fix path conversion on windows
* remove invalid paths from the list on error
* explicit error message for "No Such File"
2020-03-17 14:07:00 +01:00
Yann Lanthony
b883bd193b [core] taskManager: code cleanup 2020-01-24 18:46:32 +01:00
Yann Lanthony
991aca989b Merge develop into dev/nodesAndTaskManager 2020-01-24 14:54:08 +01:00
Yann Lanthony
79d35ac5e3 [ui] Node: display Attribute labels instead of technical names 2020-01-24 12:00:35 +01:00
Fabien Castan
a0d6d23191 [ui] add option to save the new project file from the command line 2020-01-15 20:12:53 +01:00
Lee Geertsen
7e6436cef4
[UI] Change node width 2019-11-29 11:34:15 +01:00
Lee Geertsen
5fd00450c8
Update Taskmanager when graph is loaded 2019-11-29 11:34:10 +01:00
Lee Geertsen
34a90563c8
Update TaskManager when node is removed 2019-11-29 11:34:10 +01:00
Lee Geertsen
f4e5e84478
Redesign node UI, added state icons and separate inputs and outputs 2019-11-29 11:34:10 +01:00
Lee Geertsen
01974c23ec
Make Task Manager with Nodes submitted to a render farm 2019-11-29 11:34:10 +01:00
Lee Geertsen
51d6c18840
Create TaskManager with a task overview
Create a seperate class to handle the logic of computing nodes
+ An UI overview with all submitted nodes
2019-11-29 11:34:10 +01:00
Fabien Castan
07f564d6e0 [bin] meshroom: option to choose HDRI pipeline 2019-11-04 00:30:22 +01:00
Fabien Castan
a53940d29f [core] graph: variable rename 2019-09-25 21:07:28 +02:00
Fabien Castan
06543f89a9 [core] use more explicit argument name: setupFileRef 2019-09-21 18:19:17 +02:00