The vrend command is used to start a v-ray render.
vrend
mc.vrend(*args)
It seems that every flag EXCEPT for -bake, -camera {CAM} doesn't do anything at all.
-bake
-camera {CAM}
Choose the camera to render with.
This doesn't seem to do anything.
To render another layer actually switch to another render layer through the mc.editRenderLayerGlobals() function.
mc.editRenderLayerGlobals()
Choose the renderlayer that needs to be rendered.
The width for the render output.
The height for the render output.
Do a bake render.
Renders as batch render?
Start a render:
import maya.cmds as mc mc.vrend()
Bake using the bake settings that are in the scene: This is basically what the mel script vrayStartBake does.
import maya.cmds as mc currentLayer = mc.editRenderLayerGlobals(q=1, currentRenderLayer=True) mc.vrend("-camera", "persp", "-layer", currentLayer, "-bake")
There was an error while loading. Please reload this page.