Hello devs,
I need to build custom tools for UE with Python. I launched UE for the first time a week ago, so I need a high-level understanding of how I can achieve my goals.
For Maya and Nuke, I am deploying a set of Python tools to a folder on the network drive. Then I launch apps in a certain context with Python so they “know” where those tools are and I have custom menus with my tools. So I can run applications (with Python or bat file) for any project with a custom environment and also provide additional context for different projects/shots.
For example:
def launch_maya(maya_exe, command, shot_id):
os.environ['MAYA_SHELF_PATH'] = '{0}/tools/at_maya/settings/shelves'.format(root)
os.environ['PYTHONPATH'] += ';{0}/tools/at_maya/settings'.format(root)
os.environ['SHOT_ID'] = shot_id
# Run MAYA
cmd = [maya_exe, '-hideConsole', '-command', command]
subprocess.Popen(cmd)
What would be the workflow with UE in such a case?