vrend - BigRoy/mayaVrayCommandDocs GitHub Wiki
The vrend
command is used to start a v-ray render.
mc.vrend(*args)
It seems that every flag EXCEPT for -bake
, -camera {CAM}
doesn't do anything at all.
Flags
"-camera {CAM}"
Choose the camera to render with.
- {CAM}: The name of the camera
"-layer", {LAYER}
This doesn't seem to do anything.
To render another layer actually switch to another render layer through the mc.editRenderLayerGlobals()
function.
Choose the renderlayer that needs to be rendered.
- {LAYER}: The renderlayer to render.
"-w", {WIDTH}
This doesn't seem to do anything.
The width for the render output.
- {WIDTH}: Width as an integer.
"-h", {HEIGHT}
This doesn't seem to do anything.
The height for the render output.
- {HEIGHT}: Height as an integer.
"-bake"
Do a bake render.
"-batch"
This doesn't seem to do anything.
Renders as batch render?
Examples
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")