Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

defaultArnoldDriver / aiAOVDriver access in Maya 2022 Batch Mode

defaultArnoldDriver / aiAOVDriver access in Maya 2022 Batch Mode

luis.armengolHXNHW
Observer Observer
812 Views
1 Reply
Message 1 of 2

defaultArnoldDriver / aiAOVDriver access in Maya 2022 Batch Mode

luis.armengolHXNHW
Observer
Observer

Hi,

 

In Maya 2022 Batch mode there is not access to any output driver of Arnold, giving errors if you try to query or setting some output attributes like the file format.

 

cmds.setAttr("defaultArnoldDriver.aiTranslator", "tif", type="string")
RuntimeError: setAttr: No object matches name: defaultArnoldDriver.aiTranslator

 

Also, if you try to export the scene from batch mode using arnoldExportAss() command therre are some warnings from Arnold/MtoA that points also to the output drivers.

00:00:01 701MB WARNING | [mtoa] Output driver 0 for AOV "RGBA" is null

 

and the ASS files exported dont have options.outputs attributed established.

 

This is the options of a batch mode exported ASS

options
{
 AA_samples 4
 AA_seed 101
 xres 1000
 yres 1000
 texture_per_file_stats on
 texture_searchpath "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
 texture_automip off
 camera "RefImageCameraShape"
 color_manager "defaultColorMgtGlobals"
 frame 101
 fps 25
 procedural_searchpath "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
 GI_diffuse_depth 2
 GI_specular_depth 1
 GI_transmission_depth 6
 GI_diffuse_samples 4
 GI_sss_samples 5
 declare render_layer constant STRING
 render_layer "defaultRenderLayer"
}

 

 

And this is the exported ASS of the same scene in GUI mode

 

options
{
 AA_samples 4
 outputs "RGBA RGBA defaultArnoldFilter/gaussian_filter defaultArnoldDriver/driver_tiff.RGBA"
 AA_seed 101
 xres 1000
 yres 1000
 texture_per_file_stats on
 texture_searchpath "xxxxxxxxxxxxxxxxxxxx"
 texture_automip off
 camera "RefImageCameraShape"
 color_manager "defaultColorMgtGlobals"
 frame 101
 fps 25
 procedural_searchpath "xxxxxxxxxxxxx"
 GI_diffuse_depth 2
 GI_specular_depth 1
 GI_transmission_depth 6
 GI_diffuse_samples 4
 GI_sss_samples 5
 declare render_layer constant STRING
 render_layer "defaultRenderLayer"
}

 

Any clue??

0 Likes
813 Views
1 Reply
Reply (1)
Message 2 of 2

luis.armengolXLAVP
Explorer
Explorer

Its working again calling the following code from the batch command. I am already calling this code on NewSceneOpened and SceneOpened scriptjobs everytime but I dont know why that call was working fine in Maya 2016 but not in Maya 2022.

 

import mtoa.core as core
core.createOptions()

 

0 Likes