Author Topic: Select nodes based upon order in scene tree  (Read 2572 times)

0 Members and 1 Guest are viewing this topic.

Offline zachbeale

Select nodes based upon order in scene tree
« on: January 27, 2016, 05:37:06 pm »

I'm trying to select nodes within a group in descending order in python. I can't accurately select them based on names, as each is names "GroupXXXXX" with the XXXXX being a random number. I understand how to select groups by searching for text strings within the group name, but in this instance it won't work.

The end result of this is to toggle, in descending order of the scene tree, each node on, render, then back off again, and move to the next node, to create a sequence of frames for animation.

Any help you could give would be great. I'd hate to have to spend hours naming the groups sequentially.