Hi everyone.
I'm trying to create a system to render through the command line, and I've somehow been able to do it, but the rendering result is different from when I render directly in Maya 2023.
It might be kind of a nonsense example, but in my case I have a few objects with Arnold materials, and I'm trying to run Hardware Renderer 2 (the goal is to support various renderers).
When rendering directly in Maya, the objects' materials display with no problem, but when I render through the command line, any object using Arnold materials displays almost 100% in white color, with just some hints of the original texture close to the borders of the objects.
I'm aware that the results of rendering through the GUI and the command line might differ, but is there any way to make at least the textures display correctly?
By the way, the command I'm using to render is this one:
os.system(u"Render -im {0} -rd {1} {2} & exit".format(
render_file_name,
render_folder_name,
ma_file))
I also want the command line window to close automatically after the render finishes (hence the "& exit") , but the window keeps open...
Thank you in advance for any help!
André Moreira
Game Developer / Technical Artist
LinkedIn