home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 90 / CD Actual 90.iso / Software3D / K-3D / k3d-0.4.2.1 / scripts / script_context.python < prev   
Encoding:
Text File  |  2004-07-23  |  357 b   |  10 lines

  1. #python
  2.  
  3. if MyObject:
  4.     Application.UI.Message("This script is executing within an object context", "py_script_context:");
  5. elif MyDocument:
  6.     Application.UI.Message("This script is executing within a document context", "py_script_context:");
  7. else:
  8.     Application.UI.Message("This script is executing within the global context", "py_script_context:");
  9.  
  10.