Grasshopper

algorithmic modeling for Rhino

Im trying to create a list of a point list in grasshopper using python scripting. Im getting an IronPython.Runtime.Method as the solution instead of the point list. When I try to do it without using classes all the points are stored in one list which I dont want. Maybe there is an issue with the calling. Please check.

Many thanks!

Views: 618

Attachments:

Replies to This Discussion

Hi marcus,

Thank you very much for the reply. My reply is a bit late as it took a lot of time to crack this. Honestly I couldnt figure out still, wat it means and how it works as I tried using the enumarate coomand many times without success. However I have learnt to divide the trees into branches and extract data.

Here is an interesting observation though. I send in the python lists into a seperate module in Gh and extracted the surfaces without any code. It works perfectly fine. Will be great if someone can validate this observation and explain why its working.

There was an error in my script in calling the methods within the class, which was throwing the IronPython.runtime.method error. If some has a similar problem maybe they should check if the calling. After correctly, it shows IronPython.runtime.List error which is solved using the simple code shown in the image.

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service