After looking at the list of renderLayer objects I found that the layer I 
generated was named differently than I had specified, it had a ‘rs_’ prepended 
to the name.  When I specify that name in the render() command layer option the 
script works.  Ugh.


> On Feb 20, 2019, at 12:02 PM, cfreder...@alchemic.ltd wrote:
> 
> On Monday, February 17, 2014 at 10:45:46 AM UTC-8, Johan Forsgren wrote:
>> Hi list! im tinkering on a tool that basically applies a few imported 
>> shaders and then is supposed to bathrender out a jpg, all through mayapy.exe 
>> and some argvars. 
>> the import/apply shading bit went pretty well but I'm a bit stuck on the 
>> bathrendering out bit, it seems like its not as easy as just having 
>> cmds.BatchRender() i my .py , it doesnt throw any errors, but doesnt spawn 
>> mayabatch either.... am I missing something?
> 
> I'm also running into issues rendering.  I'd like to use maya.cmds.render() 
> since it's simple and available in mayapy, and works.  The layer option 
> doesn't seem to work though.  After creating a layer according to some docs I 
> found if I try using the layer option to render() I always get:
> 
> Error: cannot find layer .....
> 
> -- 
> 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_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/python_inside_maya/c560dfb0-4681-4782-bdd6-500f458c8263%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/0CFB19B7-F228-48CE-8233-8C61A62B1D39%40alchemic.ltd.
For more options, visit https://groups.google.com/d/optout.

Reply via email to