Hello everyone. I’m faced with the problem
that i cannot apply appropriate mask for the
point=gh.NumberstoPoints(pointlist,???)
Just XYZ didn’t work.
Trying to investigate that i found:
How you can see, X input of GH Python script node
print output is a certain <type ‘CoordinateMask’>
If we trying run it through the panel node it converts to
<type ‘str’>
Here is the description of NumberstoPoints function in
help tab of script editor window:
Help on function NumberstoPoints in module ghpythonlib.components:
| NumberstoPoints(*args, **kwargs) |
| Convert a list of numbers to a list of points
| Input:
| numbers [Number] - Numbers to merge into points
| mask [Coordinate Mask] - Mask for coordinate composition
| Returns: [Point] - Ordered list of points
Now I’ve found a workaround - I’m adding
point=gh.NumberstoPoints(pointlist,1)[0]
in code and it works for one point, but i want to know
the “official” way to set the appropriate mask for that
function while grasshopper scripting.
Some years ago on Grasshopper3D forum
@DavidRutten write back on similar question,
but it works for node programming, not for python script.