These are examples on how to simply get things on the path you could use rez or any other way preferred way to get the modules and plugins loaded.
Adjust directories depending on where you have the folders and the versions of your application. Examples are given for a windows environment.
For client applications:
DDIFFUSION_API_ADDRESS=http://127.0.0.1:5000 # API server address
DDIFFUSION_API_KEY=Welcome1! # API key for client authenticationThe it_tests directory contains integration tests that verify the API functionality from a client perspective. These tests use the same generated clients and environment variables as the application clients.
The following need to be available to Houdini for the API client and agents to work.
- httpx
You can install like this to put on roaming path.
"C:\Program Files\Side Effects Software\Houdini 20.5\bin\hython.exe" -m pip install httpxHOUDINI_PATH = C:/development/deferred-diffusion/clients/houdini;&
HOUDINI_OTLSCAN_PATH = C:/development/deferred-diffusion/clients/houdini;&
PYTHONPATH = C:/development/deferred-diffusion/clients/houdini/python;&The following need to be available to Nuke for the API client to work.
- httpx
- attrs
You can install like this.
"C:\Program Files\Nuke14.0\python.exe" -m pip install httpx attrsUpdate your
- C:\Users\USERNAME.nuke\init.py
import nuke
# Centralized Nuke plugin path (your custom directory)
custom_plugin_path = r"C:\development\deferred-diffusion\clients\nuke"
# Add your custom plugin paths
nuke.pluginAddPath(custom_plugin_path)
print(f"Custom plugin paths from {custom_plugin_path} have been added.")Example showing how to call the API through a pydantic-ai agent using MCP and the ag-ui protocol for the UI.