houdini.py¶
Utility functions for Houdini environment and configuration.
This module provides utilities for managing Houdini's environment variables and configuration settings. It focuses on persistent changes that survive between sessions.
set_env_var(var_name, var_value)
¶
Set a Houdini environment variable and save to ensure persistence.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
var_name
|
str
|
Environment variable name |
required |
var_value
|
Union[str, int, float]
|
Value to set, converted to string |
required |
Notes
- Uses both hscript and Python methods to ensure compatibility
- Saves the hip file to persist the environment change
- Previous value is overwritten without warning
Examples:
Warning
This function saves the hip file. Ensure all changes are committed before calling.
Since: 1.0.0