Variable number of inputs in node


#1

Hello to all,

I need to increase or decrease the number of inputs in a Node. Same as the node merge or the node Entwine in GH. So when you press (+) you have another input and when you press (-) you cancel that input.

Can anyone help with some guidance?

thanks in advance
Carlos


(David Rutten) #2

Hi Carlos,

you need to implement the IGH_VariableParameterComponent interface in your component class.

I recommend doing most of the work in the VariableParameterMaintenance method, and provide only very summary implementations of the other methods.


#3

Thank you very much David, runs smoothly.
There is a way to refresh the rendering node after delete an input.
although it happens as soon as you “touch” the input.

thanks again
Carlos


(David Rutten) #4

Sorry was there still a question?


#5

No thanks Just resolved!.
all the best
C,