Author Topic: Getting Nodes In Order  (Read 1729 times)

0 Members and 1 Guest are viewing this topic.

Offline nicktrick92

  • Newbie
  • *
  • Posts: 7
Getting Nodes In Order
« on: July 27, 2016, 02:45:06 pm »
Hey guys, I'm really stumped on this one! So I basically have a model with 4 nodes which are named the same... Ex:
+ fwa738-1200-b5-j
    + fwa738-1200-b5-j
    + fwa738-1200-b5-j
    + fwa738-1200-b5-j

When I use the line of code
Code: [Select]
for node in root.find(): to get all the nodes in the project, it always seems to get them in a different order... Sometimes it goes from top to bottom, sometimes the opposite way, but most of the time just randomly. This is extremely hard when trying to get an ordered list by node of the materials used on the layers. Is there a way so that each time that lie of code runs it will go from top to bottom, listing all the nodes?

Thanks,

-Nick
« Last Edit: July 27, 2016, 03:26:59 pm by nicktrick92 »