home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 October - Disc 2 / PCNET_CD_2006_10_2.iso / apps / k3d-all-in-one-setup-0.5.14.0.exe / k3d-setup-0.5.14.0.exe / share / scripts / deselect_all.py < prev    next >
Encoding:
Python Source  |  2006-02-27  |  187 b   |  14 lines

  1. #python
  2.  
  3. Document.start_change_set()
  4.  
  5. try:
  6.     for node in Document.nodes:
  7.         node.selection_weight = 0.0
  8.  
  9.     Document.finish_change_set("Deselect All")
  10.  
  11. except:
  12.     Document.cancel_change_set()
  13.  
  14.