algorithmic modeling for Rhino
My C# script has a number of inputs and outputs.
There are eight inputs in total:
There are also two outputs:
My question is - what are my registerInputParams and registerOutputParams in regards to my data structure above? The first two Color list accesses, would .AddColourParameter be the right method to use? Also, for my output, what should I register them as, since I am actually displaying an image onto the canvas? Should I just leave it blank?
Thank you.
Tags:
I wouldn't use Generic unless you want to support multiple types of data. Grasshopper has specific parameters for Strings, Integers, Dates, Colours etc. etc. so you should use the most exact one you can find. I.e. AddTextParameter instead of AddGenericParameter.
--
David Rutten
david@mcneel.com
Yup.
--
David Rutten
david@mcneel.com
Registering input and output parameters is something you need to do when you write a component in Visual Studio, it is already taken care of for you when you use a VB/C# script component.
--
David Rutten
david@mcneel.com
Ignore this reply, I thought you were using a script component.
--
David Rutten
david@mcneel.com
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by