File: script_context.python

package info (click to toggle)
k3d 0.4.3.0-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 51,716 kB
  • ctags: 81,610
  • sloc: cpp: 283,698; ansic: 64,095; xml: 61,533; sh: 9,026; makefile: 5,282; python: 431; perl: 308; awk: 130
file content (9 lines) | stat: -rw-r--r-- 348 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#python

if MyObject:
	Application.UI.Message("This script is executing within an object context", "py_script_context:");
elif MyDocument:
	Application.UI.Message("This script is executing within a document context", "py_script_context:");
else:
	Application.UI.Message("This script is executing within the global context", "py_script_context:");