Hi Jon,
Sorry, but I’m going to have to admit defeat on trying to get the recursive directory scanning and submission of a combo of both individual image sequences and mov/mp4 files as Draft individual jobs into the queue!
Please see attached Draft plugin code. I’m pretty close, but there’s a couple of things I can’t get my head around. If possible, if you could help, that would be appreciated!
See attached for complete Draft plugin (as you need an additional file as well: “SupportedFormats.ini”)
I have also corrected a few typos in your code, which I think are correct. (probably best to do a diff-compare of my code against yours…)
Outstanding issues:
1.Submitting multiple individual image sequences by the “Select by File” method works, but it fails to write the FrameList/StartFrame/EndFrame to the ascii job file
2. “Select by Directory” submission system successfully submits jobs into the queue, but the job name is totally borked and so is the “inFile” / “outFolder” / “outFile”. Not sure completely what is going on here, but the jobs that get submitted seem to be all the letters of the alphabet! (if you sort them once they are all submitted)
So I had a look at it, and made a couple fixes. I was still using the FrameString from the text box, which I’ve fixed. I think the only problem with your code was that you forgot to parse the filenames from the semi-colon separated string into a list, which was mucking out the output folder stuff.
I gave the recursive directory submission code a few tests and for some reason, the dictionary to only track unique sequences is failing to de-dup the image sequences and so submits a Draft job for every frame for each image sequence! It works fine for the “MultiFileSelect” submisison process of yours. Must be something in my directory crawling code, although its not obvious to me at the moment…?
So that one was a real stumper, but I finally figured it out! The issue is that there were spaces between files in the semi-colon separated string of files your code generates, which was mucking up the sequence parsing stuff.
There’s a couple ways to fix this, you can change your call to ‘StringUtils.ToSemicolonSeparatedString’ to pass in ‘False’ instead of ‘True’:
Final version, with a tweak to the “outFile” to ensure it doesn’t pass thorugh an “outFile” when nothing has been entered, such as in the case of batch Draft submission mode.
See attached.
Hi Jon,
I found 1 edge case which I couldn’t quite see where best to fix. Potentially in the “def ParseFrameStringFromFile”.
I have an image sequence with an in-correct file padding such as: [mike_000.tga - mike_2500.tga]
Not sure if this can be fixed?
Also, I have found that the “def ParseFrameStringFromFile” takes a really long time if you feed it a lot of image sequences; say 30 image sequences between ranges of 0000-1000 for each sequence.
Again, not sure if this could be improved?