Grasshopper

algorithmic modeling for Rhino

Error coding in Python component : iteration over non-sequence of type Guid

Hi all.

When  I tried to run the attached example from code.algorithmicdesign, this error just keeps popping up whenever I refer to the input object of the Python component.

Can anyone tell me how to solve this? Thank you.

Views: 6071

Attachments:

Replies to This Discussion

Hi, 

You will have to set the pts and meshes inputs as a list, otherwise the algorithm is no capable of iterating.

Best,

M.

Hi Mario~ Thanks for your quick reply!!

Could you please kindly show me what does it mean of "pts and meshes inputs as a list" 

Do you mean multiple pts and meshes? It does not seems to work when I connect the input with point or mesh as sort of aggregation. Sorry as I'm a beginner. Many thanks!! :)

It would be invaluable support if you can show me an example with this python example. Never thanks enough!!! :)

check the snapshot. you need to declare what king of data structure you input in the script..(item, list, tree)..

I am attaching the working def.

This is no easy task for a beginner though make sure you understand this and refer to other discussions on how to set the input values on custom scriptable components in Grasshopper.

Best,

M

Attachments:

Hi Marios,

I know this is from a long time ago. Wondering if you might help at all.  I understand the data needs to be in a list. I am however getting an error in a line of code that doesn't seem to exist?  I'v attached the error and the files. Any advice would be much appreciated.

Attachments:

I have no idea what you want to do with this script.

I fixed it but I have also posted a more resilient agent system using python on Github a while ago.

https://github.com/marios-tsiliakos/AgentsGHPython

Best,

M

Attachments:

Thanks Mario~ It is working now.

And my another inquiry is that can you give me a direction to generate a variety density of blob meshes under node points of the trajectory lines like the below link? I believe you already have seen it.

http://www.algorithmicdesign.net/bartlett/encoded_2012/agentSense/a...

Basically, the agent lines generated through this script does not have well fitted intersection points, I have no idea how to make sort of skeleton typed blobs-should be connected with WB. I've tried with "exoskeleton" and "ts-pipe", but both of them does not seem to work like the link since generated agent lists do not have node points.

Many thanks for continuing support!!!   

Please refer to this post from my blog.\

M.

Thanks again!!!! :)

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