No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pasteToSelected.py 528B

12345678910111213141516171819
  1. import nuke
  2. def toggleSelection(node):
  3. newValue = not node['selected'].value()
  4. node['selected'].setValue(newValue)
  5. def pasteToSelected ():
  6. if not nuke.selectedNodes():
  7. nuke.nodePaste('%clipboard%')
  8. return
  9. selection = nuke.selectedNodes()
  10. for node in selection:
  11. toggleSelection(node)
  12. for node in selection:
  13. node['selected'].setValue(1)
  14. nuke.nodePaste('%clipboard%')
  15. node['selected'].setValue(0)
  16. for node in selection:
  17. toggleSelection(node)