How do I make the input grafted directly when I drag my component onto the canvas?

Hi all,

I am writing a collection of components and in one of them I need one of the inputs to always be grafted. I’ve seen from other plug-ins that an input can come already grafted when you drag the component onto the canvas.

How do I write this?

Thanks,
David

At the end of RegisterInputParams():
Params.Input[inputIndex].DataMapping = GH_DataMapping.Graft;

1 Like

Perfect Dani, thanks a lot!