I am using the MayaBatch plugin with a ScriptJob. I would like the progress to update, is there an internal output parser where I can print out progress and have the monitor update the task progress. Or is there some other way to do this. Currently I am printing out something like
0: STDOUT: Progress: 13
I notice there is a ‘task progress’ in the Jobs window, and a ‘progress’ in the tasks view. Ideally, I would love it to update the percent in the job view, is that possible?
We have no comments in there, so I’m not sure which apps that’s set up for, but it definitely works. You can piggyback off existing handlers in some plugins, but for others, you’ll have to define your own handler and then your own version of HandleProgressMessage1 which looks like this:
That function looks a bit odd because we expect you to restart your progress counts for each frame. If your job is a single frame task (tasks must have one frame, even if it’s not used), then throwing out progress messages will just work.
I’m trying to do this exact thing. Im not quite sure I’m following how this works. Am i adding a simple print statement inside the ‘python script’ that is running inside of maya? The one doing the for loop?