are you rendering with standalone arnold kick.exe? If yes, here's part of
code ripped from my setup to export .ass files:
import maya.app.renderSetup.model.renderSetup as renderSetup
def RenderCacheExport(renderLayers, frameList):
tryAttr("defaultRenderGlobals.animation", 1) #tryAttr is a wrapper
around setAttr
tryAttr("defaultRenderGlobals.extensionPadding", 4)
tryAttr("defaultArnoldDriver.halfPrecision", 1)
tryAttr("defaultArnoldDriver.tiled", 1)
tryAttr("defaultArnoldRenderOptions.bucketScanning", 0)
tryAttr("defaultArnoldRenderOptions.enableProgressiveRender", 0)
for f in frameList:
mc.currentTime(f, e=1)
for rl in renderLayers:
render_setup = renderSetup.instance()
renderLayerList = render_setup.getRenderLayers()
renderLayerList = [l for l in renderLayerList if l.name() == rl]
render_setup.switchToLayer(renderLayerList[0])
mc.setAttr('defaultRenderGlobals.imageFilePrefix', f
'c:/temp/out_{rl}_{f}.exr', type='string')
mc.arnoldExportAss(cam='|persp', f=f'c:/temp/out_{rl}_{f}.ass')
On Monday, November 10, 2025 at 3:11:39 PM UTC+1 [email protected] wrote:
> I need to setup a script..and having a hell of time finding resources
> online to show the commands or even a solid "stable" approach to this
>
> so I have a script setup to alter a few things in my scene, set a new
> frame and what I need is pointers on then having it render the image to
> disk using Arnold to a set path
>
> that last bit is where I am having issues finding anything on the commands
> or proper way to do it
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/python_inside_maya/6687d030-9de8-4566-8b5e-1b177b49442dn%40googlegroups.com.