This is a case of us missing an update to the documentation, sorry about that. During the lifetime of Deadline 9, we switched how we store the IDs of all the UI elements so that we could better handle the ID generation. So previously we had stored them straight in the “SubmitC4DToDeadlineDialog” object as instance variables, but now we store in them in a dict in that dialog object. To show you what I mean, this is what the updated documentation should look like:
import c4d
from c4d import gui
def RunSanityCheck( dialog ):
dialog.SetString( dialog.dialogIDs[ "DepartmentBoxID" ], "The Best Department!" )
dialog.SetLong( dialog.dialogIDs[ "PriorityBoxID" ], 33 )
dialog.SetLong( dialog.dialogIDs[ "ConcurrentTasksBoxID" ], 2 )
gui.MessageDialog( "This is a custom sanity check!" )
return True
Fair warning, I haven’t actually tested this code yet, I just wrote it straight into this post, but we’ll be updating the documentation for the C4D CustomSanityCheck.py as part of this.