Community
Maya Shading, Lighting and Rendering
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya materials topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Different result rendering through Maya GUI and command line

0 REPLIES 0
Reply
Message 1 of 1
trs_andre
204 Views, 0 Replies

Different result rendering through Maya GUI and command line

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

Labels (4)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report