File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,26 @@ QT Editor for the flowpipe framework based on NodeGraphQt.
77
88NOTE: In it's current state the Widget is a visualizer only not an editor.
99
10+ For interpreter based node icons the <i >interpreter</i > key in the node's metadata (if existing) is used to find the matching icon from:
11+ ` flowpipe_editor.flowpipe_editor_widget.ICONS_PATH ` .
12+
1013## Example
1114``` python
12- from flowpipe import Graph
15+ from flowpipe import Graph, Node
1316from flowpipe_editor.flowpipe_editor_widget import FlowpipeEditorWidget
1417
18+ @Node (outputs = [" renderings" ], metadata = {" interpreter" : " houdini" })
19+ def HoudiniRender (frames , scene_file ):
20+ """ Creates a Houdini scene file for rendering."""
21+ return {" renderings" : " /renderings/file.%04d .exr" }
22+
1523graph = Graph(name = " Rendering" )
1624
25+ houdini_render = HoudiniRender(
26+ name = " HoudiniRender{0} -{1} " .format(i, i + batch_size),
27+ graph = graph,
28+ frames = range (i, i + batch_size),
29+ )
1730# ... create nodes and append to graph ...
1831
1932window = QtWidgets.QWidget()
You can’t perform that action at this time.
0 commit comments