register_context_script
Register a Python script for later execution in Blender, organizing by category with an option to make it permanent.
Instructions
Register a Python script for later execution in Blender.
Args:
script_name: Name for the script (without .py extension)
script_content: The Python code to save
category: Category/folder to organize scripts (default: "default")
permanent: If True, script survives context clearing operations (default: False)
Returns:
Success/error message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | default | |
| permanent | No | ||
| script_name | Yes | ||
| script_content | Yes |