standalone playblast view settings

standalone playblast view settings

christopher.fontein
Explorer Explorer
917 Views
1 Reply
Message 1 of 2

standalone playblast view settings

christopher.fontein
Explorer
Explorer

I've created a playblast script to run in standalone.  It completes successfully but appears to have turned on the lights instead of the Maya default lighting.  Does anyone know where it's getting the viewport settings from and how to change them seeing as the normal viewports don't exist in standalone?

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

christopher.fontein
Explorer
Explorer

If it helps here's a trimmed  down version of my code at the moment.

import sys
import maya.cmds as cmds
import maya.standalone as standalone

standalone.initialize(name='python')

path = sys.argv[1]
args = {...}

cmds.file(path, open = True)
cmds.playblast(**args)

standalone.uninitialize()

To run in commandline

mayapy myscript.py somefile.ma