mayaPy does not find mel procedure

438 views
Skip to first unread message

ma...@binaryalchemy.de

unread,
Jan 30, 2014, 2:55:01 PM1/30/14
to python_in...@googlegroups.com
Hi

I am trying to render via mayapy.
I am calling

maya.mel.eval('mayaBatchRenderProcedure(0, "", "", "'+str(Renderer)+'", "")')
mayaBatchRenderProcedure is found, but then I get the error message:

RuntimeError: Error occurred during execution of MEL script
line 1: file: C:/Program Files/Autodesk/Maya2012/scripts/others/mayaBatchRenderProcedure.mel line 319: Cannot find procedure "rendererRenderTargetSupport".


Any ideas how to solve this?


Thanks,
Holger

Justin Israel

unread,
Jan 30, 2014, 9:25:57 PM1/30/14
to python_in...@googlegroups.com
Did you initialize maya standalone?

import maya.standalone
maya.standalone.initialize()

Also, do you need to be able to call the mel command, or can you use the maya cmds module?





--
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/a8cc6cc2-882d-4573-8350-59560f601385%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages