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 / script_context.py < prev    next >
Encoding:
Text File  |  2006-05-12  |  301 b   |  12 lines

  1. #python
  2.  
  3. import k3d
  4.  
  5. if locals().has_key("Node"):
  6.     k3d.ui.message("This script is executing within an object context")
  7. elif locals().has_key("Document"):
  8.     k3d.ui.message("This script is executing within a document context")
  9. else:
  10.     k3d.ui.message("This script is executing within the global context")
  11.  
  12.