Render Common line

Render Common line

Anonymous
Not applicable
741 Views
3 Replies
Message 1 of 4

Render Common line

Anonymous
Not applicable

hi guys i am traying to run some scene from maya common line but i am getting this error and i dont know why 

 

Error: file: C:/Allegorithmic/SubstanceMaya/2019/scripts/userSetup.mel line 54: UI commands can't be run in batch mode.
File read in 0.056 seconds.
Result: C:/Users/faust/Documents/maya/2019/Common line/scenes/test.mb

 

this is how i am traying to run the scene from maya common line 

C:\Users\faust\Documents\maya\2019\Common line\scenes>render -r arnold -s 1 -e 20 -b 1 test.mb

 

C:\Users\faust\Documents\maya\2019\Common line\scenes>render  -s 1 -e 20 -b 1 test.mb

 

but its not working for me, can you please help me.thanks 

 

0 Likes
742 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

Have you seen this ? https://answers.arnoldrenderer.com/questions/13382/problems-with-batch-rendering-in-mtoa-ui-commands...

 

Also do you have Maya open when you launch your command ?

0 Likes
Message 3 of 4

Anonymous
Not applicable

yes i did and  it keeping the same error i create A NEW scenes and is the same error

0 Likes
Message 4 of 4

Anonymous
Not applicable

 

C:/Allegorithmic/SubstanceMaya/2019/scripts/userSetup.mel line 54: UI commands can't be run in batch mode.

 

 

The userSetup.mel file that raises your error is a script that Maya loads at startup. So this message tells you that you launch Maya in batch mode (ie without the interface), but you're still using a command at line54 that needs the interface.

 

If you do not want to use the Maya main GUI when writing your command, you should probably modify your userSetup.mel file. If you want to use Maya main GUI and don't want to use batch mode, then there's an error somewhere in what you do (because Maya is launched in batch mode). Maybe the -b option in your render command that doesn't do what you think it does ? Or maybe it's also in your userSetup.mel file ?