Grasshopper

algorithmic modeling for Rhino

Hi,

 

I'm using the python component for grasshopper, and have wondered to access to the data structure which grasshopper consists. 

 

using a=ghdoc seems to be efficient for output, but I can't get the right data structure as input.

 

anything will help.

 

I'm sure that I'm using the latest component(v0.4.1.1)

 

Views: 36006

Reply to This

Replies to This Discussion

For some months already I am no longer the maintainer of the GhPython project. I thought to lend a hand though, so, here is an update for the uploaded file to Gh 0.9 and GhPython 0.5.1. The component seems not to behave correctly now when trying to change the presentation style, so maybe a workaround for now is not to change it.

Attachments:

Here is a simple way I unpack a python list into Grasshopper.  String the components together like I show in the video.  I hope this helps everyone.

I posted a video explanation here

http://www.youtube.com/watch?v=2Cf5lqbY_4w&feature=youtu.be 

Attachments:

Hello Everyone.

Here is a python script useful for unpacking multiply nested python lists .

Just connect it to the output you want to unpack. You only need to use it once and it will move every element in the list on its corresponding branch in the GH Tree .

Also it prints out the branches for each consecutive element in the list. 

Hope this is helpful 

Andrei 

Attachments:

Hey Everyone.

Here is a python script for people who want to get start into the topic: Grasshopper Python DataTree.

data_tree.gh

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2019   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service