Sverchok icon indicating copy to clipboard operation
Sverchok copied to clipboard

Dynamic Socket Issues

Open ly29 opened this issue 8 years ago • 3 comments

  • [ ] Multisocket
  • [ ] Changing socket type

Multisocket is allowing a dynamic amount of inputs into a node, like list join and formula node.

@node_func(...)
def formula_node(x: Float = 1.0, *n: Float)-> Float:
    pass

Changing socket type is basically allowing type information to be carried forward over generic socket links. A kind of generics basically.

def split(size: Int = 1, data: Anytype = Required) -> [Anytype("Data", input=1)]:
    pass

ly29 avatar Feb 09 '17 15:02 ly29

So this becomes slight more advanced than expected right now, refactor assumptions time...

ly29 avatar Feb 20 '17 09:02 ly29

There are still some issues plaguing this, I am not totally sure how I want this to work out. The current abstraction breaks down a little here which I am obviously not totally happy with...

ly29 avatar Feb 20 '17 12:02 ly29

So what does need to be abstracted and possible to over ride is the collection of arguments.

ly29 avatar Feb 21 '17 06:02 ly29