Node Graph

Build on

  • Python 3.7
  • PySide2

Github Source Code

Introduction

인트로

介紹

Works on the principle of basic graph algorithm.

A single node has two input/output connections.

The port entering the input based on the location of the plug is specified as the Left Port, and the port leaving the output as the Right Port.

A number of adjacent nodes can be connected to each port.

Useage

사용방법

使用方法

node1 = Node(NodeUtil.NODE_TYPE.mod, _id=1)
node1.setPos(-100, 10)
scene.addItem(node1)

node2 = Node(NodeUtil.NODE_TYPE.rig, _id=2)
node2.setPos(200, 0)
scene.addItem(node2)

edge1 = Edge(node1.rightPort, node2.leftPort)
scene.addItem(edge1)

Screenshots

Leave a Reply

Your email address will not be published. Required fields are marked *