Thank you!!!
So for anyone who checks up on this thread. I updated the Cinema4DSubmission.py and added this to the end of the script:
if( len( sceneFiles ) == 1 ):
# Extract the directory of the scene file
scene_dir = os.path.dirname(sceneFile)
# Path to the 'tex' folder within the same directory as the scene file
tex_dir = os.path.join(scene_dir, 'tex')
# Check if the 'tex' folder exists
if os.path.exists(tex_dir) and os.path.isdir(tex_dir):
print(f"'tex' folder found at: {tex_dir}")
for file in os.listdir(tex_dir):
if not file.startswith('.'):
full_path = os.path.join(tex_dir, file)
arguments.Add(full_path);
else:
print("No 'tex' folder found in the scene directory.")
print("executing command: %s" % " ".join(arguments))
results = ClientUtils.ExecuteCommandAndGetOutput( arguments )
scriptDialog.ShowMessageBox( results, "Submission Results" )
I check for a ‘tex’ folder and then upload all the files from the ‘tex’ folder onto the deadline.
@Justin let me know if you see any issues with this approach. The only overhead I see is copying the files multiple times to the render nodes, but that shouldn’t be too bad for now. I assume once a node picks up the next task in the same job, it doesn’t need to re-copy the job data, correct?
Another concern was from a different thread that the command could be too long so I probably should put the args in a .txt, eh? (C4D Auxfiles strategy).