AWS Thinkbox Discussion Forums

Extra Job Info Keys Not Working in Max - and a fix

Hi All,

https://docs.thinkboxsoftware.com/products/deadline/10.0/1_User%20Manual/manual/app-3ds-max-smtd-scripting.html

This documentation suggests that the array held in SMTDSettings.ExtraJobInfoKeys will be parsed for key pairs which are then added into the Deadline job on submit. Unforunately it doesn’t work!

I took at a look at the SMTD Functions file for how that array gets used and can see the problem. It filters the array for appropriate sub arrays, and then simply adds them to the jobinfo file as Key=Pair. But that’s not the correct format. The Job Info File requires the format to be:

ExtraInfoKeyValue0=key=value

So the SMTD Functions file is missing the ExtraInfoKeyValueX bit and as such it doesn’t work. Fortunately it’s very simple to fix.

Open up repo\submission\3dsmax\Main\SubmitMaxToDeadline_Functions.ms and Ctrl + F for for aKeyPair in SMTDSettings.ExtraJobInfoKeys - it’ll be at approximately line 5,600.

It will have a code snippet that looks like this:

for aKeyPair in SMTDSettings.ExtraJobInfoKeys where isKindOf aKeyPair Array and aKeyPair.count == 2 do
(
    format "%=%\n" aKeyPair[1] aKeyPair[2] to:submitInfoFile
)

You’ll want to replace that with this:

keypaircounter = 0
for aKeyPair in SMTDSettings.ExtraJobInfoKeys where isKindOf aKeyPair Array and aKeyPair.count == 2 do
(
    format "ExtraInfoKeyValue%=%=%\n" (keypaircounter as string) aKeyPair[1] aKeyPair[2] to:submitInfoFile
    keypaircounter += 1
)

Now it’ll format the keys and values into the correct format and they’ll be picked up by the job.

2 Likes

A quick query: is there any danger of this being integrated into a future release on Deadline? Ideally it’d be nice not to have to integrate it each time we upgrade.

Thanks,
Dan

Thanks so much for this… Been frustrated for a few hours as to why this is not working.

I can report that this bug fix was not integrated into the latest version…

KramSurfer

You’re welcome!

I ended up going on a brief, 5-year detour into the land of Maya, and reading my original post up top didn’t engender even the faintest flicker of recognition - our brains appear to be very good at ruthlessly filtering out and discarding unused knowledge.

I am now, however, coming back into contact with 3dsmax so who knows if this information will come in handy. Mostly, though, I’m now worried about all the other useful information that I don’t even know I once knew!

Privacy | Site terms | Cookie preferences