Hi there,
How could I go about creating a MayaBatch job (mayapy) where each task perform a unique python command?
A “real life” use-case would be, I want to load a maya scene file and have each task perform a geo-cache export for each asset in the scene.
So I expect the process something along these lines:
- The Job command will open the maya scene file.
- each task will cache one asset in the already loaded maya scene file.
task1 execute: "import cache;cache.export(‘asset1’)
task2 execute: "import cache;cache.export(‘asset2’)
task3 execute: "import cache;cache.export(‘asset3’)
The idea with this approach is to have the scene loaded once (on the job level) and each task execute it’s own portion.
I believe that would required a custom MayaBatch plugin, where I can rework the
def RenderTasks(self)
to grab the task’s command, somehow.
So I guess my question has two parts:
- Would you recommend this approach in Deadline (I’m fairly new to Deadline) if not, what approach would/have you taken?
- Am I on the right path with creating a branch from MayaBatch into plugin into a new custom one? Is there a better/easier alternative?
Thank you in advance for any insights,
Asi