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
Tags:
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
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by