Grasshopper

algorithmic modeling for Rhino

how can i get one of curves through listitem in latest version of ghpython

after 0.6 version of ghpython, we can call gh components in python directly. but it still can't sovle my problem.

i want to get one of the curves in python, and store it in a array.

my script is

 

import ghpythonlib.components as tc

curves=x # 5 curves

c1=gc.listitem(curves,0)

 

but it turn out c1 also have 5 curves. how can i only get one of the 5 curves?

thanks for hellp me

Views: 358

Replies to This Discussion

Why you call components at all?

List item is just curves[id] in python.

i just want to pick each one of the curves in a list, then to analysis it's direction one by one, but seems like they are treedata not array in a list. but, whatever, thanks

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