How to ''Render to texture'' using the command line?

jimKUQZ5
Enthusiast

How to ''Render to texture'' using the command line?

jimKUQZ5
Enthusiast
Enthusiast

I have to render long sequences using the "Render to texture" functionallity in maya/Arnold. (Bake lighting to mesh)

https://help.autodesk.com/view/ARNOL/ENU/?guid=arnold_for_maya_utils_am_Render_Selection_to_Texture_...

There is this ui within maya to render to texture but this will not scale up to our needs, renderfarm/viewport/pipeline.

 

- Is it possible to implement this on a renderfarm? (Kick the renders using command line tools)

- Is it possible to view an interactive render in the arnold renderview? (For artist lookdev)

0 Likes
Reply
492 Views
3 Replies
Replies (3)

Stephen.Blair
Community Manager
Community Manager

Render to Texture is a Maya command, so you can script it like this:

 

import maya.cmds as cmds
cmds.arnoldRenderToTexture("pCubeShape1", folder="/temp", resolution=2048, all_udims=True)

 



// Stephen Blair
// Arnold Renderer Support
0 Likes

jimKUQZ5
Enthusiast
Enthusiast
Thanks was able to implement this in the mayaBatch executable! Now runs smoothly on the renderfarm 🙂

Any suggestions for the viewport?
0 Likes

jimKUQZ5
Enthusiast
Enthusiast

@Stephen.Blair One of our artists noticed that it is possible to view "baked" renderings in the octane renderview.

Octane Baking Camera 

 

Can we replicate something like this in Arnold? Would be nice to have this functionallity embedded as a camera.

0 Likes