algorithmic modeling for Rhino
Hi,
I am writing a script with moving points and it works well with 1 point.
When I write a "for" loop for number of points.
I get the following message for each point:
[<Rhino.Geometry.Vector3d object at 0x0000000000000032 [48.1911343851305,14.545802698521,-19.9930292973833]>]
And in grasshopper window:
IronPython.Runtime.List
How to transform this line into simple point3D?
Please look at printscreen attached to this message.
Tags:
Found it
I just reversed the nested list.
or:
import collections
xIsList = isinstance(x, collections.Iterable)
if (xIsList):
a = x
else:
a = [x]
a = x
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
© 2024 Created by Scott Davidson. Powered by