I’m just getting started with the MochaPro 2020 Python API and am trying to write a custom project manager. As a start I want to be able to open existing mocha project files.
I’ve run this in the Python Script Editor in an active Mocha Pro 2020 session (with no project loaded):
import mocha project = mocha.project.Project("/path/to/mochaProjectFile.mocha") print(project.clips)
This creates a valid
Project instance and I can access
project.clips and other properties.
However the Mocha UI does not change nor does it load the specified project file.
How can I load a project file just like a user would do manually through File > Open Project…?
Thanks in advance for any help