Reputation: 317
I am trying to create a new command for maya to: 1. load the render settings profile 2. batch render the animation 3. save each image out based on a file format
I figured out how to do this in MEL or Python. I want to create the tool for C++. I have already looked into OpenMayaRender, but it seems that everything is for rendering to the viewport. Can anyone point me in the right direction? Or should I just use the scripting languages?
Upvotes: 1
Views: 297
Reputation: 12218
I'd recommend sticking with script: it will be easier to develop and this does not sound like an application where the performance of the batch command itself will significantly affect throughput: you're talking fractions of a second to set up the job compared to minutes (or hours!) of rendering time.
Plus, if you go the C++ route you have to worry about supporting different OS/platform combinations.
The only exception would be if you have to support a format that Maya doesn't already support. Doing tons of per-pixel formatting would be very slow in mel or python. In that case you could create a file translator for your image file format and package it along with an MPXcommand to do the batch job.
Upvotes: 0