nuke python + get node in focus (runIn)

hey ppl.

I’m having a hard time identifying a node within the current focus.

this is quiet a good solution for getting the nodes.. what annoys me is the result.

Code:

for group in nuke.selectedNodes():    currSel = nuke.runIn( group.name(), 'nuke.selectedNodes()')
    print currSel


which returns

Quote:

# Result: [<RotoPaint5 at 0x0000000004E96EB0>, <RotoPaint3 at 0x0000000004E8C130>, <RotoPaint4 at 0x0000000004E96E90>]


is there any way to filter this results to get a clean name array like:

Quote:

# Result: [<RotoPaint5>, <RotoPaint3>, <RotoPaint4>]


thanks for help!
B.

No Responses to “nuke python + get node in focus (runIn)”

Post a Comment