Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5793

Python loop through data trees {A;B;C;D}(i)

$
0
0

@jake1 wrote:

I am trying to loop through each branch at multiple levels of my data tree.
The structure of the tree is {A;B;C;D} (i).

I have looped through simple trees before with

for i in range(Tree.BranchCount):
branchList = Tree.Branch(i)
for j in range(branchList.Count):

I am trying to loop through A then loop through B within A’s loop… and so on.

Am I thinking about this the wrong way?

Thanks for the help,
Jake

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5793

Trending Articles