2021-06-08 23:37:03: 0: INFO: Full Command: “/usr/autodesk/maya2018/bin/maya” -prompt -proj “/mnt/driveT/007_GENESIS/work/01_SCR_STOCK/STOCKS_DUNAS_CAMELOS/STOCKS_DUNAS_CAMELOS_T003/publish/yeti/anim”
so, basically, i want to use the line that contains “INFO: Argument: -prompt -proj” and append a “-command ‘file -loadnoReferences’” or something like that before maya is executed, have any way of doing that? i need to create a copy of the maya plugin and hardcode the option to open maya with a parameter?
Each plugin has a method RenderArgument which assembles the arguments to be passed to the executable. You can override just that method, if sufficient.
so, i read the documentation about the RenderArgument, and its talk about:
“… or from the plugin info file that was submitted with the job using the GetPluginInfoEntry() function”
ok, look like its possible to send this information in the job info file, but, i didnt get what is going to be the value that i set on the job file for this additional tags, like:
In the particular case of Maya, both the Monitor submission script and the integrated Maya subitter offer the option to pass additional command line arguments - the former in the Advanced Options tab, the latter in the Render Options panel.
You must uncheck the “Use MayaBatch Plugin” option to use MayaCmd instead (because MayaBatch uses a MEL script to control the process, not command line arguments).
Then you can enter the command line arguments you want to add, or, if you want to replace the command line with your arguments completely, you can also check the checkbox “Use Only Additional Command Line Arguments” (but you probably don’t want to do that).
This results in a Plugin Info Parameter CommandLineOptions=... :
So if you are submitting your own MayaCmd job with your own PluginInfo and JobInfo files, you could just pass the CommandLineOptions argument in the PluginInfo file.
For most other Deadline integration plugins, you might not have this option and you would have to mess with the Python integration script, and the submission scripts to pass extra arguments.