I hide inputs on postage stamps by default but very often just want to move everything up or down to add space, so for me not moving hidden inputs is something I’m bothered with - however I think the ctrl+shift+click option seemed a neat solution to not select inputs. Ctrl+alt makes sense for selecting downstream. You could just rip off my code and make it a separate option? Mines in the edit menu with no short cuts. My crappy code attached (hopefully) |
def selectUpDown(direction='up', all='all'): sn = nuke.selectedNode() if all == 'connected': nuke.selectConnectedNodes() elif all == 'all': nuke.selectAll() elif all == 'unconnected': nuke.selectConnectedNodes() nuke.invertSelection() return
for i in nuke.selectedNodes(): if 'up'==direction: if i['ypos'].value() > sn['ypos'].value(): i['selected'].setValue(False) elif 'down'==direction: if i['ypos'].value() < sn['ypos'].value(): i['selected'].setValue(False) elif 'left'==direction: if i['xpos'].value() > sn['xpos'].value(): i['selected'].setValue(False) elif 'right'==direction: if i['xpos'].value() < sn['xpos'].value(): i['selected'].setValue(False)
|
_______________________________________________ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users