There is a way to do as you are attempting, however before getting into that have you looking into separating your processes.
By your description, in pseudo code you are doing this procedure:
--[script.py
01 - Import shaders
02 - perform application
03 - render
[bash-01]>./script.py
…Result: rendered images
By using the shipped in Render command you can find in your installation you already have granular control over your renders, so the procedure would be:
--[script.py
01 - import shaders
02 – perform application
03 – save new version of scene
[bash-01]>./script.py
[bash-02]>./Render scene_version.mb
…Result: rendered images
////
Same result but saves you a lot of code building if you do it like that and you have off the shelf distribution capabilities. But if you still want to then each flag that the Render command uses is also accessible within python of course
http://download.autodesk.com/global/docs/maya2014/en_us/CommandsPython/render.html
{ If you use this one just batch and split your operations within your code and you have a batch renderer }
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/21a707de-1082-4c51-85be-f2572b5b0bb5%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Johan Forsgren | |
3D Artist | |
Phone + 46 31 752 20 07 | johan.f...@edithouse.se |
| Follow us at facebook.com/edithousefilmworks |
![]() |
edithouse FILM WORKS | www.edithouse.se |
Lilla Bommen 4a, S-411 04 Göteborg, Sweden | www.facebook.com/edithousefilmworks |
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/53030bad.8461b40a.69e3.fffffa80%40mx.google.com.
For more options, visit https://groups.google.com/groups/opt_out.
JOHAN FORSGREN | |
CG ARTIST | |
Phone + 46 31 752 20 00 | johan.f...@edithouse.se |
Direct + 46 31 752 20 07 | Follow us at facebook.com/edithousefilmworks |
![]() |
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/W6QbXBDl-HM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANSD_rqsbGn2iA6tGi7nK%3Dx3mDOucXO4KKcjSYhRfezLGXSSYA%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/W6QbXBDl-HM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANSD_rqsbGn2iA6tGi7nK%3Dx3mDOucXO4KKcjSYhRfezLGXSSYA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/078DA604-BEF9-4722-9C4E-B8AC373474BD%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.