home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Multimedia / k3d-setup-0.7.11.0.exe / share / k3d / scripts / print_selected_objects.py < prev    next >
Text File  |  2008-07-27  |  278b  |  15 lines

  1. #python
  2.  
  3. import k3d
  4.  
  5. selection_node = Document.get_node_by_metadata("inode_selection", "ngui:unique_node", "node_selection")
  6.  
  7. for node in selection_node.selected_nodes():
  8.         print "Selected:", node.name
  9.  
  10. import sys
  11. sys.stdout.flush()
  12.  
  13. k3d.ui().message("Output sent to console")
  14.  
  15.