algorithmic modeling for Rhino
Dear GHA developers,
As mentioned previously, there is a bug that cannot be solved with a minimal approach to assigning lists vs. items to component output parameters. Always assigning a null/Nothing list before returning is one way to solve this problem, but the next release of Grasshopper has overloads for Register_XXXXParam() methods inside the RegisterOutputParams() method. It is now possible to assign an access value to outputs and this access flag is taken into account by the data matching algorithms.
So by specifying the access type right at the start, you won't have to worry about assigning lists any more.
protected override void RegisterOutputParams(
GH_Component.GH_OutputParamManager pm)
{
pm.Register_XXXXParam("blah", "b", "blah", GH_ParamAccess.list);
}
Once 0.9.0001 goes out you will be able to modify your code to use these overloads. Note that this is not a breaking change, components will continue to behave as they did before (actually, hopefully slightly better than before), but adding access flags inside RegisterOutputParams will be considered good manners.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Tags:
Any thoughts on how far out (days vs weeks) the next release of GH will be?
I really hope I'll be done in 2~3 weeks, but there's still a lot of stuff with Clusters that needs to be done before then.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
I look forward to the next release.
Me too :)
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Me to, david good works !
Grasshopper is so fantastic...
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