/usr/share/k3d/scripts/script_context.py is in k3d-data 0.8.0.3-3build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | #python
import k3d
if context.has_key("node"):
k3d.ui().message("This script is executing within a node context")
elif context.has_key("document"):
k3d.ui().message("This script is executing within a document context")
else:
k3d.ui().message("This script is executing within the global context")
|