Grasshopper

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.

Views: 2342

Attachments:

Replies to This Discussion

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

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service