Giter VIP home page Giter VIP logo

Comments (5)

BlackStar-EoP avatar BlackStar-EoP commented on May 29, 2024 3

What if you destroy all connections to that Node when the number of in/out ports changes? It's not extremely user-friendly, but would at least provide support for this use-case.

I am in need of this behavior as well, I use the node editor for creating rendering pipelines using shaders, and the shader node depends on the shader used to determine the number of input/output ports.

I will try to see if I can implement this in my fork using a signal that's emitted when the number of ports changes to destroy all connections to the node that changed.

from nodeeditor.

DexterMagnific avatar DexterMagnific commented on May 29, 2024 2

Please please implement this feature. We are making an Audio designer app and we need to dynamically adjust the number of I/O ports after creation.

In this case we only have one data model: the audio block. But we need to adjust the number of I/O channels for each block

from nodeeditor.

paceholder avatar paceholder commented on May 29, 2024

Currently it is not possible. Such a behavior would result into a tricky management of already attached Connections. Currently the GUI representation (Node, Connection) and the data representation (NodeModel) have a very thin layer in-between. Managing the connections from inside the model would force me to merge two classes: NodeModel and Node. This will be a big refactoring

from nodeeditor.

BlackStar-EoP avatar BlackStar-EoP commented on May 29, 2024

Dynamic input output ports was one of my prime use-cases, so I have developed my own node editor for this, https://github.com/BlackStar-EoP/eop-node-editor . Can be used as an alternative, but be wary, it's in no way mature enough and lacks automatic propagation support.

from nodeeditor.

paceholder avatar paceholder commented on May 29, 2024

The dynamic ports are avaliable in v3. The feature might need some improvements according to specific application needs.

from nodeeditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.