home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Multimedia / k3d-setup-0.7.11.0.exe / share / k3d / scripts / script_context.py < prev    next >
Encoding:
Text File  |  2008-01-23  |  304 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 a node 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.