Grasshopper

algorithmic modeling for Rhino

Hello, I am new to python/gh programing.I'm testing with a very small program, but it doesn't work as I expected. It processes each point three times, as you can see.

I suppose it must be some stupid mistake, but I have been searching for it and I've not been able to find a solution.
Could someone make me any suggestions?

Views: 3583

Replies to This Discussion

Is nudos a list input? I think the loop is iterating over the coordinates in each point, rather than over the list of points as a whole. That explains why everything is times 3 (once for x, y and z).

No, is a Item input.

That is what David was saying: you need to set the "nudos" to "List Access".
And change the:

    xpunto = nudos.X

to:

    xpunto = n.X

I'm afraid that this change does not work

Hi Enrique,Check the attached files

Attachments:

yes, thank you very much, this solves the problem

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service