Feedback

What's your question?

By: [ Editor ] Asked

script to list all output images

Hi Does anyone have a script to list all output frames maya would produce when batch rendering ? Smth that would take filename prefix like '%s/%l_%c/%l_%s', enabled renderlayers and cameras and produce list of output files.

This is easy to write, but I'm lazy and perhaps someone has already done it.

thanks !

PS. is it possible to use envvars or, better, commands in file prefix in renderglobals ? This way I could dynamically set output paths.

Add comment viewed 108 times Latest activity 11 months ago

or Cancel

1 answer

  • 1

julian [ Admin ]

Regarding the file prefix in render globals, there are some variables already available. You have to put them in angle brackets.

foo_<Camera>_<RenderLayer>_<Scene>

To evaluate commands you would have to override the script that resolves the name. I think its in mayaBatchRenderProcedure.mel

For example, check to see if the whole string is surrounded by backticks, and if so, remove the backticks and then use

$imageName = eval($imageName) ;

Do that after the bit where it substitutes the angle brackets - then you could enter in the filename field:

`buildTheImageNameMyWay(<Scene>)`
NN comments
michalf
-

thanks Julian, I’ll have a look at mayaBatchRenderProcedure.mel I got used to 3delight’s way of deadling with paths, now I need smth. similar in maya/mray

or Cancel