Close

Palette:tdPyEnvManager Ext

These Extensions reference a specific Palette:tdPyEnvManager.


TDPyEnvManagerExt

The extension of the TDPyEnvManager COMP. The promoted surface is intentionally small and focused on the main runtime actions exposed by the component. Users wishing for additional public methods matching logic already available through the COMP UI can share an RFE on the forum. Advanced users can use the TDPyEnvManagerHelper module directly. Recent builds stamp context writes with the component version and prefer updating [tool.touchdesigner.TDPyEnvManagerContext] in pyproject.toml when that section exists, instead of always writing YAML.

Members

Helper → TDPyEnvManagerHelper :

A helper class to manage Python and Conda environments for TouchDesigner. The extension updates the helper's context writer version before persisting startup settings so context files or pyproject.toml metadata reflect the TouchDesigner component version. See TDPyEnvManagerHelper.

Logger → Logger COMP :

Logger COMP used by the extension.

Ready → bool :

True when the environment is ready for use.

SafeLogger → logging.Logger :

Python logger for thread-safe logging.

ThreadManager → ThreadManager COMP :

Reference to TouchDesigner's ThreadManager for running tasks.

Working → bool :

True while the extension is running a task.

Methods

TDPyEnvManagerExt.OpenCli() -> None:

Open the command line interface (CLI) for the current mode and environment.

TDPyEnvManagerExt.RefreshCondaEnvListThreaded() -> None:

Refresh the list of conda environments in a thread.

TDPyEnvManagerExt.Reset() -> None:

Reset the component to its initial state and reinitialize the component.

TDPyEnvManagerExt.Restart() -> None:

Prompt the user to save before quitting the current TouchDesigner session.

TDPyEnvManagerExt.SubprocessTerminated(returnCode: int) -> None:

Callback for when a subprocess is terminated.

Args:

  • returnCode (int): The return code of the subprocess.

TouchDesigner Build: