AWS Thinkbox Discussion Forums

Load Maya's plugin with JobPreload

I need to force Maya to load AbcImport.mll. I want to do this without relying on maya.env file. Is it possible to do this with the JobPreload.py?

Mmmm… I’m not sure if you can force a particular plugin, but if it can be done by setting environment variables:

docs.thinkboxsoftware.com/produ … preload-py

Setting PYTHONPATH to a userSetup.py with loadPlugin command is 1 way. I’m curious if it is possible all within Deadline scripting.

docs.thinkboxsoftware.com/produ … preload-py

Setting PYTHONPATH to a userSetup.py with loadPlugin command is 1 way. I’m curious if it is possible all within Deadline scripting.
I can confirm that this works, we have a startup function that is called from the userSetup.py that loads the specific plugins required for a project, before it loads the maya scene.

We found that alembic plugin specifically works best at this point, because deadline line will wait for the plugin to load before executing the global mel script that is run.

Cheers
Kym

Privacy | Site terms | Cookie preferences