Toon Boom Harmony 20 Premium Extended Scripting Interface

I have been trying to do some extended scripting on harmony, especially on running external python scripts, but I can’t seem to find the “PythonManager” module as a package in my Toon Boom packages directory.

Anytime I try to use the PythonManager module in my script it always says “the module cannot be found”.

Please I need help on finding the PythonManager module so that I can use it in my scripts or if at all I need to install it specially, I’ll also need a guide on how to do that.

This is very important to me right now and I’ll be so glad to get any response that can help.

Thanks a lot.

1 Like

I have the same problem in 21, no matter the python versions I have installed and set in my PATH.
If I run Harmony from a prompt, I always get

Python not detected, python script will be disabled.

Is there any exact information about the correct settings to have it working ? Thanks. Stefano

Hi,

I don’t know if these information will help you.
But, I poste them, just in case. :slight_smile:

1.Toon Boom Harmony 21.0.1 Release Notes:
(Toon Boom Harmony 21.0.1 Release Notes)
The Python plugin, which allows Python 2.7 scripts to be run from Harmony, no longer loads by default on macOS Big Sur and Monterey. You can force the Python plugin to load by enabling the FORCE_LOAD_PYTHON_SCRIPT hidden preference.

2. Toon Boom Harmony 21.1:]
(Toon Boom Harmony 21.1 Release Notes)
JavaScript Python Plugin:
The JavaScript Python bridge, used by PythonManager and PyObjectWrapper, has been updated to Python 3. If you have python scripts using the bridge, they must be updated to Python 3. The Python bridge now requires Python 3.9 or later to be installed.

1 Like

Thank you. Eventually I solved the issue by re-installing python 3.9 in custom mode, with Install for all users enabled in the Advanced Options.

I am having the same issue, but with TB 22. I have installed Python 3.11 and it is in PATH environment variables.
I also installed Python for all users as suggested by Stefano but it still says ‘Python not detected’.

Hi,

The Harmony 22.0.1 Release contains the following bug fix:

  • Toon Boom Python API cannot be loaded unless a license with database is available. HAR-8832

Maybe this was the source of the described problem.