Hi Chaos Group !
I can't find the way to run a playblast in a subprocess and get the same result as an interactive playblast with VRay IPR.
The maya command cmds.playblast works well but the chosen renderer isn't VRayRT in batch mode.
Here is a frame of each result:
1. Launch VRay IPR via UI button then running playblast script in interactive session
2. Running the same playblast script in subprocess
The Maya hardware renderer does not understand the VRay materials so a white constant appears.
With Lambert materials the meshes have color with both interactive and batch playblast.
I tried to force VRayRT renderer with
or with openMaya
But these solutions are not working in batch mode.
So, is there a way to use VRayRT as playblast renderer in batch mode ?
Bonus question:
Using one of the script snippets above in an interactive session the VRay IPR starts well. But if I run the playblast without waiting the IPR is fully loaded, the Maya scene freeze.
Is there a callback I can use to launch playblast only when VRay IPR is ready ?
My setup :
Thanks
Thibaud
I can't find the way to run a playblast in a subprocess and get the same result as an interactive playblast with VRay IPR.
The maya command cmds.playblast works well but the chosen renderer isn't VRayRT in batch mode.
Here is a frame of each result:
1. Launch VRay IPR via UI button then running playblast script in interactive session
2. Running the same playblast script in subprocess
The Maya hardware renderer does not understand the VRay materials so a white constant appears.
With Lambert materials the meshes have color with both interactive and batch playblast.
I tried to force VRayRT renderer with
Code:
model_editor = cmds.playblast([COLOR=#aa4926]activeEditor[/COLOR]=[COLOR=#6897bb]1[/COLOR]) cmds.modelEditor(model_editor[COLOR=#cc7832], [/COLOR][COLOR=#aa4926]e[/COLOR]=[COLOR=#6897bb]1[/COLOR][COLOR=#cc7832], [/COLOR][COLOR=#aa4926]rendererOverrideName[/COLOR]=[COLOR=#a5c261]"VRayRT"[/COLOR])
Code:
view = omui.M3dView.active3dView() view.setRenderOverrideName("VRayRT") view.refresh(True, True, True)
So, is there a way to use VRayRT as playblast renderer in batch mode ?
Bonus question:
Using one of the script snippets above in an interactive session the VRay IPR starts well. But if I run the playblast without waiting the IPR is fully loaded, the Maya scene freeze.
Is there a callback I can use to launch playblast only when VRay IPR is ready ?
My setup :
- centos 7
- maya 2018.6
- vray_for_maya 4.12.02
Thanks
Thibaud
Comment