C4D Auxfiles strategy


Im trying to figure out a way to add all assets present in c4d scenes as aux files on submission. Some of our guys work in Dropbox and the rest of us work from a central server. So i need to get all the scene assets over on the server not just the scene file. The scene file is copied to the server when we submit with “Submit C4D Scene File” checked. Ive poked around in the C4D submitter but im not exactly sure where to tweak it. We are trying to avoid using save project with assets as you have to manually specify the destination folder and file name. Any tips would be appreciated.



Ok. So i figured out how to add asset file paths to the deadlinecommand around line 1808 in the c4d submission script:

    args = [ jobInfoFile, pluginInfoFile ]
    if submitScene:

        #----------Racecar custom---------------#
        args.append( sceneFilename )

        # Add asset paths here
        lastPath = ''
        doc = c4d.documents.GetActiveDocument()
        assets = c4d.documents.GetAllAssets(doc, False, lastPath, flags=c4d.ASSETDATA_FLAG_NONE)
        for asset in assets:
            args.append( asset )

        #----------Racecar custom---------------#

But when i try to submit jobs with this tweak i get an error in Cinema saying: “An error occured while submitting the job to Deadline” with no messages in the c4d console. Not sure what im doing wrong.