Grasshopper

algorithmic modeling for Rhino

Hi all,

I am trying to pinpoint a specific item from an input (datatree) using Python.

On VB, it was pretty easy by saying "input_datatree.item(input_datatree.path(i),j)" but it seems like this is not the case for python.

 

Any comment, suggestion would be much appreciated. Thanks!

 

P

Views: 1616

Replies to This Discussion

Python's indexing operator is the square bracket: [ ]

while Vb.Net uses the property named Item(value)

You should use then the square bracket, in a way similar to this: input_datatree[input_datatree.Path(i),j]
(I did not try it)

Giulio Piacentino

Thanks much! it worked!

 

Best,

Peter

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service