Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to create a mayabatch job with the command line.
Mayabatch returns a Syntax Error on any -command I try to apply on the scene, showing a truncated command:
"C:/Program Files/Autodesk/Maya2020/bin/mayabatch.exe" -file test.ma -command "playblast -format qt -filename "test.mov" -fo -sequenceTime 0 -clearCache 1 -viewer 1 -showOrnaments 0 -fp 4 -percent 100 -compression "JPEG 2000" -quality 100 -widthHeight 1920 1080;"
will return an error:
Result: test.ma
Error: playblast -format qt -filename playblast -format qt -filename "test.mov" -fo -seque;
Error: Line 1.34: Syntax error
Another exemple:
"C:/Program Files/Autodesk/Maya2020/bin/mayabatch.exe" -file test.ma -command "python("print('pouic '*50)");"returns:
Result: test.ma
Error: python(print('pouic;
Error: Line 1.14: Syntax error
Any idea how to make this work?
Thanks
Solved! Go to Solution.