Render - Maya
This use case shows how to render a scene.
Simple Render
How to render a sphere with a blinn material.wood creation
<Creation id="wood" filename="wood.jpg">
<Info name="width">1000</Info>
<Info name="height">1000</Info>
</Creation>
output creation
<Creation id="outputMaya" filename="scene/outputMaya.jpg">
<Info name="width">1920</Info>
<Info name="height">1080</Info>
</Creation>
process
<Process id="mayaRender1" type="3d" delegate="maya">
<Param name="reset">1</Param>
<Object create="object" name="sphere">
<Param name="class">sphere</Param>
<Param name="radius">2</Param>
<Param name="material">blinn</Param>
<Param name="material.class">blinn</Param>
<Param name="material.color">map(wood, wood)</Param>
</Object>
<Object create="object" name="spot">
<Param name="class">spotLight</Param>
<Param name="coneAngle">80</Param>
<Param name="intensity">2</Param>
<Param name="pos.z">6</Param>
</Object>
<Object name="persp">
<Param name="pos">8;6;8</Param>
<Param name="rot">-30;45;0</Param>
</Object>
<Render>
<Param name="creationId">outputMaya</Param>
<Param name="resolution">1920;1080</Param>
<Param name="camera">persp</Param>
<Param name="default.gammaCorrection">2</Param>
</Render>
</Process>
result
viewport
Specifications: Process
Render an animation
How to render a sphere squashed.wood creation
<Creation id="wood" filename="wood.jpg">
<Info name="width">1000</Info>
<Info name="height">1000</Info>
</Creation>
output creation
process
<Process id="mayaRender2" type="3d" delegate="maya">
<Param name="reset">1</Param>
<Object create="object" name="sphere">
<Param name="class">sphere</Param>
<Param name="radius">2</Param>
<Param name="squash">deformer</Param>
<Param name="squash.class">nonLinear</Param>
<Param name="squash.type">squash</Param>
<Param name="material">blinn</Param>
<Param name="material.class">blinn</Param>
<Param name="material.color">map(wood, wood)</Param>
</Object>
<Object name="squash">
<FuncParam name="factor" type="floatAtoB" frames="0-100">
<Param name="begin">-0.3</Param>
<Param name="end">0.5</Param>
</FuncParam>
</Object>
<Object create="object" name="spot">
<Param name="class">spotLight</Param>
<Param name="coneAngle">80</Param>
<Param name="intensity">1</Param>
<Param name="pos.z">4</Param>
</Object>
<Object name="persp">
<Param name="pos">8;6;8</Param>
<Param name="rot">-30;45;0</Param>
</Object>
<Render>
<Param name="creationId">outputMaya1</Param>
<Param name="frames">1-100</Param>
<Param name="resolution">1920;1080</Param>
<Param name="camera">persp</Param>
<Param name="default.gammaCorrection">2</Param>
</Render>
</Process>
result
Specifications: Process