Skip to content

Commit 7e6704b

Browse files
Update Redme icon info and Example
1 parent 6690813 commit 7e6704b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,26 @@ QT Editor for the flowpipe framework based on NodeGraphQt.
77

88
NOTE: 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
1316
from 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+
1523
graph = 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

1932
window = QtWidgets.QWidget()

0 commit comments

Comments
 (0)