algorithmic modeling for Rhino
There are no arrays in GH, there are data trees. Try to change the input hint of your python component to either list or datatree.
Hope that this helps.
Best,
M.
Wrong wording.Literally the output of contours component becomes the input of python component.So,my question,it's not a list into the python component?what is this?
thank you for your response
I would listen to Marios advice and change the "x" input's "Type hint".
It would be better if you would attach the .gh file too.
As you can see , I tried to offset a list o f contours.The obvious thing is that python component doesn't work like python editor.
thanks for your response
Hi Vasilis.
Your "x" input type was set to "float" instead of "ghdoc object".
To access a certain item from python sequence (list in this case) use the square brackets.
The rs.OffsetCurve works the same as in Rhino Python editor. The problem is that it returns a list. Then you append its result to "a" list - which makes it a list of a list. Grasshopper does not support that. So you need to either make a branch and add the list which rs.OffsetCurve returns to that branch, or just append all elements returned from the rs.OffsetCurve function to "a" list, on at a time.
Please attach your .3dm file too, next time. Thanks.
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