Thanks Zipit and PluginStudent,
@PluginStudent I already use the Pluginmessage function, see example below.
def PluginMessage(id, data):
if id == c4d.C4DPL_COMMANDLINEARGS:
argstring = ' '.join(sys.argv)
if "- customsubs" in argstring:
But than you have the problem that is not running before the -render command just like you said. It all about the order of operations I think. Cinema needs to wait until the script is done before starting the render.
@zipit Very interesting and something to look at. I already have another workaround. I can set a RenderDocument function in the script. Meaning I will do everything from the script. Making the adjustments and also the rendering. Skipping the whole -render.
But I like to do it with the method above for many reason to long to explain:D Something like this must be possible right? Or maybe not