Palette:tdPyEnvManager Ext

From Derivative
Jump to navigation Jump to search

These Extensions reference a specific Palette:tdPyEnvManager.


TDPyEnvManagerExt[edit]

The extension of the TDPyEnvManager COMP. LinkPyEnv, LinkConda, LinkCondaEnv are methods of interest using the extension. While the promoted methods are currently the bare minimum, users wishing for specific logic found through the COMP's UI can share an RFE on the forum. Advanced users can use the TDPyEnvManagerHelper module.

Members[edit]

HelperTDPyEnvManagerHelper :

=A class to manage the installation and setup of Python and Conda environments for TouchDesigner. This class doesn't require TouchDesigner to be running and can be used as a standalone Python script. It gets imported as a module in TouchDesigner in the context of the TDPyEnvManager to be used as a helper class within the TDPyEnvManager. It provides methods to download and install Miniconda, create Conda environments, and manage Python virtual environments. It also includes methods for logging, downloading files, creating .gitignore files, and verifying installations as well as various other tools and utilities. More details available at TDPyEnvManagerHelper.

LoggerLogger COMP :

Logger COMP for logging messages used in the TDPyEnvManager extension.

Readybool :

Flag to indicate if the TDPyEnvManager environment is ready to be used.

SafeLoggerlogging.Logger :

SafeLogger, Logger COMP's python logger object, for logging messages safely across threads.

ThreadManagerThreadManager COMP :

A reference to TouchDesigner's ThreadManager for creating TDTasks and running them in threads.

Workingbool :

Flag to indicate if the TDPyEnvManager is currently working on a (potentially threaded) task.

Methods[edit]

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: