pelos Posted October 23, 2013 Share Posted October 23, 2013 i select some nodes on the network tab, and i do get a tuple, i can make it a list, and then sort them. but is not always the same depending on the way the node were selected. can i sort them base on node.name() Quote Link to comment Share on other sites More sharing options...
graham Posted October 23, 2013 Share Posted October 23, 2013 You could write your own comparison function but in this case it's easiest to just use a key based on the name() function. nodes.sort(key=hou.Node.name) Quote Link to comment Share on other sites More sharing options...
pelos Posted October 24, 2013 Author Share Posted October 24, 2013 Yei! awesome!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.