MEL command to set Render Settings Image Format using Arnold

MEL command to set Render Settings Image Format using Arnold

jen_steinkamp
Enthusiast Enthusiast
1,052 Views
6 Replies
Message 1 of 7

MEL command to set Render Settings Image Format using Arnold

jen_steinkamp
Enthusiast
Enthusiast

I can change the "Maya Software Render" "Render Settings" Image Format to tif using this MEL command:
        setAttr "defaultRenderGlobals.imageFormat" 3;
This command does not work for Arnold.

I would like to do the same for defaultArnoldRenderGlobals.

Any suggestions?

0 Likes
Accepted solutions (1)
1,053 Views
6 Replies
Replies (6)
Message 2 of 7

Stephen.Blair
Community Manager
Community Manager
0 Likes
Message 3 of 7

jen_steinkamp
Enthusiast
Enthusiast

Hi

These examples do not seem to work, I tried this MEL script, the python does not work as well: 

setAttr "defaultArnoldDriver.ai_translator" -type "string" "jpeg";
// Error: line 1: setAttr: No object matches name: defaultArnoldDriver.ai_translator

0 Likes
Message 4 of 7

Stephen.Blair
Community Manager
Community Manager

Those script commands work in a default scene with the default Arnold nodes. You can just update the commands with the names of the driver nodes in the scene.

 

image_format.png



// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 5 of 7

jen_steinkamp
Enthusiast
Enthusiast

I tried a default scene and resetting to default Render Settings; I also tried creating new prefs for Maya.

I am using Arnold 5.2.2.1

 

print( getAttr( "defaultArnolddriver.ai_translator" ) + "\n");
// Error: line 1: No object matches name: defaultArnolddriver.ai_translator

0 Likes
Message 6 of 7

Stephen.Blair
Community Manager
Community Manager
Accepted solution

@jen_steinkamp wrote:

I can change the "Maya Software Render" "Render Settings" Image Format to tif using this MEL command:
        setAttr "defaultRenderGlobals.imageFormat" 3;
This command does not work for Arnold.

I would like to do the same for defaultArnoldRenderGlobals.

Any suggestions?


"dd" should be "dD" in the aboveai_translator.png

I'm using MtoA 5.2.2.1



// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 7 of 7

jen_steinkamp
Enthusiast
Enthusiast

THANKS!!!!

0 Likes