We use a python script to launch test renders in the VFB but we have a problem. If window focus changes (eg click in another window) then the render will freeze and maya will stop responding and must be killed from task manager. This only seems to be a problem if we are using VFB.
This is the python commands we are currently using.
import maya.mel as mel
cmd = 'vrend -width 1024 -height 576 -camera cameraShape -layer layerA'
mel.eval(cmd)
If we do it with mel like this
vrend -width 1024 -height 576 -camera cameraShape -layer layerA;
then there is no problem.
We would really like to get this working with python, so I attached a simple test scene if you want to have a look.
Thanks in advance.
David
This is the python commands we are currently using.
import maya.mel as mel
cmd = 'vrend -width 1024 -height 576 -camera cameraShape -layer layerA'
mel.eval(cmd)
If we do it with mel like this
vrend -width 1024 -height 576 -camera cameraShape -layer layerA;
then there is no problem.
We would really like to get this working with python, so I attached a simple test scene if you want to have a look.
Thanks in advance.
David
Comment