Page 1 of 1

How would you automate this workflow?

Posted: Thu Dec 15, 2022 7:37 am
by jumeh
Hi guys, what would be a way to automate (through code / scripting / command line) this workflow:

1/ I have a C4D project of an animated sphere floating for 5s.

2/ I also have a folder receiving files every day (around 500 videos / day) at any time randomly (those files are animated texture, videos, to use on the sphere)

3/ Anytime a file is received on that folder it should trigger C4D to render the sphere project (with Octane) with the received file as a background texture

4/ It should send the final EXR sequence to a target folder

Should it be done via command line only? Scripting?

I couldn't find any explanation on the subject yet...

I would love to hear what you guys have in mind for that, I hope it will help others!

Thanks for your suggestions - Jumeh

Re: How would you automate this workflow?

Posted: Mon Dec 19, 2022 7:57 am
by bepeg4d
Hi Jumeh,
a solution is to use Standalone + Lua scripts.
In particular, you should need a Lua script that updates an .ocs Standalone scene (exported from c4doctane) with the desired image sequence texture, and to trigger another Lua script for rendering and saving to the desired path like this one:
viewtopic.php?f=73&t=70855&p=358206&hil ... ua#p403251

ciao,
Beppe