Render.exe : More than one file name is not allowed: -noRender ...
At line:1 char:7
+ render <<<< -r vray -preRender "phxfdBatchSim(\"PhoenixFDSimulator1\")" -noRender V:\ss\sequences\OS\OS_002_0010\3d\maya\scenes\fx\simonec\testBatch.mb
+ CategoryInfo : NotSpecified: (More than one f...: -noRender ...:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Render.exe :
At line:1 char:7
+ render <<<< -r vray V:\ss\sequences\OS\OS_002_0010\3d\maya\scenes\fx\simonec\testBatch.mb
+ CategoryInfo : NotSpecified: (:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Starting "C:\Program Files\Autodesk\Maya2013\bin\mayabatch.exe"
Phoenix FD for Maya 2013, version 2.1.1 from Jan 21 2014, 02:31:57, revision 24088
PhoenixFD: loading C:\Program Files\Autodesk\Maya2013/phoenixfd/scripts/phxfdInit.mel...
OK.
We are running in batch mode
mental ray for Maya 2013
mental ray: version 3.10.1.11, Jul 26 2012, revision 177995
File read in 0 seconds.
Result: V:/ss/sequences/OS/OS_002_0010/3d/maya/scenes/fx/simonec/testBatch.mb
Error: file: C:/Program Files/Autodesk/Maya2013/vray/scripts/vrayRegisterRenderer.mel line 62: Cannot find procedure "vrayDebug".
Warning: file: C:/Program Files/Autodesk/Maya2013/vray/scripts/vrayRegisterRenderer.mel line 165: Unrecognized node type 'VRaySettingsNode'; preserving node information during this session.
Error: line 0: Cannot find procedure "vrend".
Warning: file: C:/Program Files/Autodesk/Maya2013/scripts/others/mayaBatchRenderProcedure.mel line 599: Renderer returned an error while rendering 'defaultRenderLayer', please verify the output image.
Scene V:\ss\sequences\OS\OS_002_0010\3d\maya\scenes\fx\simonec\testBatch.mb completed.
Could you please confirm that file testBatch.mb is created with Maya 2013?
From the render log I see that V-Ray is not installed on Maya 2013 or not loaded for some reason.
Right I figure out after a mug of coffee, I changed the computer and the auto-load on the file of vray was off in the pref!! shame of me,
btw, In the small spare-time I had at work I did this scirpt to lunch in batch directly with maya the simulation, just select the sim node and lunch the script (or click in the Icon). will be cool have it or something like that in the next version of phoenixfd
here the script, feel free to use it:
'''
Phoenix Batch Simulation Luncher 0.0.4
Simone Ciliani for BaseBlack London
Please do not modify or reuse without email-me at cily35@hotmail.com / www.cily.it
HOW TO USE:
Just select the simulation node and lunch the script (save it like an Icon if you want look smarter!!! :))
Remember to use a good project path or a good cache path
Version with GUI and options flag in develop?!
'''
import maya.cmds as cmds
import sys;import os
import subprocess; import maya.utils
print "\n\n================= Lunch Phoenix Sim Locally ================="
## Read selection simulator node
sel = cmds.ls( sl=True )
## Exit with a non appropriate node selected##
if cmds.objectType( cmds.listRelatives(sel[0]), isType='PhoenixFDSimulator' ) == False or len(sel)!=1:
print "ERROR: you have must to select a proper PhoenixFDSimulator node or only 1 at time"
sys.exit() ## too check if it is works
simNode = sel[0]
print "Your simulation Node is: "+simNode
### read the workspace - No really need but useful to know for the cache
workspacePath = cmds.workspace( q=True, directory=True )
print "Your workspace path is here: " + workspacePath
## read the scene name the path and save ### NEED TO FIX file never saved
sceneName = cmds.file(q=True, shn=True, sn=True)
if sceneName == "":
print "You have no save yet your file, the name SimulationBatchSave will be set by default"
sceneName = "SimulationBatchSave.mb"
scenePathName = cmds.file(q=True, sn=True)
print "Saving your scene file ..... "+scenePathName
cmds.file (s=True)
### Def Function LunchBatch
def lunchBatch():
### prepare the batch string
batchString = 'start cmd /k render -r vray -preRender \"phxfdBatchSim(\\\"%s\\\")\" -noRender %s' %(simNode,scenePathName)
## print batchString
### create the file bat
filename = workspacePath+"/phoenixSimulation.bat"
dir = os.path.dirname(filename)
if not os.path.exists(dir):
os.makedirs(dir)
print "Writing a temporary file phoenixSimulation.bat in the same folder of the scene file"
batFile=open(filename, 'w')
batFile.write(batchString)
batFile.close()
'''
### Lunch the Bat process in SubProcess - was an alternative
### but is going in Main trheding causing maya freeze waiting for the end
pro = subprocess.Popen(filename, shell = True, stdout = subprocess.PIPE)
stdout, stderr = pro.communicate()
print "lunched with processor code: "+str(pro.returncode) # os 0 if success
'''
### Lunch old way school
print "Lunching Sim in Batch mode - check the command line window"
os.system(filename)
### In case of need multiThreding
### maya.utils.executeDeferred('lunchBatch()')
lunchBatch()
print "============================================================\n\n"
####### END ########