Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cuegui] feat: Add job node graph plugin v2 #1400

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
7f57691
Switch to PySide6
lithorus Jun 15, 2024
66eee00
Update qtpy to 2.4.1
lithorus Jun 15, 2024
33dfa16
Update PySide2/PySide6 support matrix
lithorus Jun 15, 2024
0f8ee7e
Update code to use qtpy and fork of NodeGraphQt that supports PySide6
lithorus Jun 29, 2024
a558840
Fix pylint
lithorus Jun 29, 2024
cb22c46
Lock nodes names to be non-editable
lithorus Jun 29, 2024
9918fc5
Fix some small linting warnings
lithorus Jun 29, 2024
22634ff
Import fork of NodeGraphQt and remove reference to external repo
lithorus Jun 29, 2024
a258bc0
Fix python linting
lithorus Jun 29, 2024
effb801
Make QUndoStack compatible with both PySide2 and PySide6
lithorus Jun 29, 2024
6fbf2d1
Add simple test for JobGraphPlugin
lithorus Jun 30, 2024
d68c930
Switch to use packaging instead of distutils
lithorus Jun 30, 2024
a1ead15
Don't update graph if job has not been selected yet
lithorus Jun 30, 2024
7f81326
Fix for having a single plugin in a window (.ini files are bad for sa…
lithorus Jun 30, 2024
ea1b9f8
Interpret the value of "Open" correctly in the ini file for Window state
lithorus Jun 30, 2024
8f766ee
Merge branch 'AcademySoftwareFoundation:master' into nodegraph
lithorus Jul 16, 2024
de3bed3
Merge branch 'AcademySoftwareFoundation:master' into nodegraph
lithorus Jul 17, 2024
acde3f9
Merge remote-tracking branch 'origin/master' into nodegraph
lithorus Jul 23, 2024
8fd8db9
Merge branch 'AcademySoftwareFoundation:master' into nodegraph
lithorus Jul 30, 2024
e172f01
Merge remote-tracking branch 'origin/master' into nodegraph
lithorus Aug 2, 2024
d011718
Merge branch 'AcademySoftwareFoundation:master' into nodegraph
lithorus Aug 14, 2024
4bb0d0f
Merge remote-tracking branch 'origin/master' into nodegraph
lithorus Aug 20, 2024
b40fdcd
Merge branch 'AcademySoftwareFoundation:master' into nodegraph
lithorus Sep 6, 2024
7dfe035
Merge branch 'AcademySoftwareFoundation:master' into nodegraph
lithorus Sep 11, 2024
d6d0209
Remove local copy of NodeGraphQqt and add as submodule
lithorus Sep 11, 2024
2922a20
Small change to maintain support for PySide2
lithorus Sep 11, 2024
7c6c159
Small change to maintain support for PySide2
lithorus Sep 11, 2024
d7f190e
Test with changes to CI/CD
lithorus Sep 11, 2024
a67eac0
Small yaml structure fix
lithorus Sep 11, 2024
548790a
Test with checkout v4
lithorus Sep 11, 2024
36aee1d
Remove PySide6 test and downgrade checkout in vfx 2022 tests
lithorus Sep 11, 2024
9f7acab
Update lint python tests to vfx 2023
lithorus Sep 11, 2024
3611402
Delete pyside6 test script
lithorus Sep 11, 2024
2a4b0d3
Remove external repo and add pypi package instead
lithorus Dec 3, 2024
df8c823
Merge remote-tracking branch 'origin/master' into nodegraph
lithorus Dec 3, 2024
887333b
Fix linting
lithorus Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 93 additions & 0 deletions cuegui/NodeGraphQt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
**NodeGraphQt** is a node graph framework that can be implemented and re purposed
into applications that supports **PySide2**.

project: https://github.com/jchanvfx/NodeGraphQt
documentation: https://jchanvfx.github.io/NodeGraphQt/api/html/index.html

example code:

.. code-block:: python
:linenos:

from NodeGraphQt import QtWidgets, NodeGraph, BaseNode


class MyNode(BaseNode):

__identifier__ = 'io.github.jchanvfx'
NODE_NAME = 'My Node'

def __init__(self):
super(MyNode, self).__init__()
self.add_input('foo', color=(180, 80, 0))
self.add_output('bar')

if __name__ == '__main__':
app = QtWidgets.QApplication([])
graph = NodeGraph()

graph.register_node(BaseNode)
graph.register_node(BackdropNode)

backdrop = graph.create_node('nodeGraphQt.nodes.Backdrop', name='Backdrop')
node_a = graph.create_node('io.github.jchanvfx.MyNode', name='Node A')
node_b = graph.create_node('io.github.jchanvfx.MyNode', name='Node B', color='#5b162f')

node_a.set_input(0, node_b.output(0))

viewer = graph.viewer()
viewer.show()

app.exec_()
"""
from .pkg_info import __version__ as VERSION
from .pkg_info import __license__ as LICENSE

# node graph
from .base.graph import NodeGraph, SubGraph
from .base.menu import NodesMenu, NodeGraphMenu, NodeGraphCommand

# nodes & ports
from .base.port import Port
from .base.node import NodeObject
from .nodes.base_node import BaseNode
from .nodes.base_node_circle import BaseNodeCircle
from .nodes.backdrop_node import BackdropNode
from .nodes.group_node import GroupNode

# widgets
from .widgets.node_widgets import NodeBaseWidget
from .custom_widgets.nodes_tree import NodesTreeWidget
from .custom_widgets.nodes_palette import NodesPaletteWidget
from .custom_widgets.properties_bin.node_property_widgets import (
NodePropEditorWidget,
PropertiesBinWidget
)


__version__ = VERSION
__all__ = [
'BackdropNode',
'BaseNode',
'BaseNodeCircle',
'GroupNode',
'LICENSE',
'NodeBaseWidget',
'NodeGraph',
'NodeGraphCommand',
'NodeGraphMenu',
'NodeObject',
'NodesPaletteWidget',
'NodePropEditorWidget',
'NodesTreeWidget',
'NodesMenu',
'Port',
'PropertiesBinWidget',
'SubGraph',
'VERSION',
'constants',
'custom_widgets'
]
Empty file.
Loading
Loading