1.
for n in nodes:
print n
2.
print len(nodes)
3.
print nodes[0]
4.
print nodes[-1]
Hope it will help you.
题
I would like to know a few things here. I'm collecting all the selected nodes using this code snippet below. What I'm now wondering is...
How do I get the last node's position in the collection?
nodes = cmds.ls(long = True, selection = True, type = 'dagNode')
解决方案
1.
for n in nodes:
print n
2.
print len(nodes)
3.
print nodes[0]
4.
print nodes[-1]
Hope it will help you.