I'm trying to run a python script before running a command line render. For example, change the subdivisions of a scene before you render the project.
The problem is the order of operations. The example below doesn't work.
The custom script is called -customsubs and works with the C4DPL_COMMANDLINEARGS function.
"C:\Program Files\MAXON\Cinema 4D R21\Commandline.exe" -render%userprofile%\Desktop\test.c4d -frame 0 0 -oimage %userprofile%\Desktop\test -omultipass %userprofile%\Desktop\test_mp -oformat TIFF -customsubs
I found a user with a similar problem but he is using C++ and this method of priorities is not working with python as far as I know.
Link to user with same problem
So the questions is: How can I run a custom python script before the -render command?