OK, let me see if I can lay out what I’m doing in the Modo scripts as an analogy:
In the \renderfarm\DeadlineRepository6\scripts\SubmissionModoSubmission.py
This is where the Job name box is defined for the GUI
line 52 - scriptDialog.AddControl( “NameLabel”, “LabelControl”, “Job Name”, labelWidth, -1, “The name of your job. This is optional, and if left blank, it will default to ‘Untitled’.” )
line 53 - scriptDialog.AddControl( “NameBox”, “TextControl”, “Untitled”, tabWidth - labelWidth - 24, -1 )
So I looked for where the name box is being assigned further down. I found this set of code starting at line 271:
[b] appSubmission = False
if len( args ) > 0:
scriptDialog.SetValue( “SceneBox”, args[0] )
scriptDialog.SetValue( “FramesBox”, args[1] )
sceneName = Path.GetFileName( args[0] )
jobName = sceneName[:-4]
scriptDialog.SetValue( "NameBox", jobName )
#scriptDialog.SetValue( "NameBox", sceneName )
appSubmission = True
[/b]
If you notice what I changed is that I took the file name and removed the file extension from the string. I am then using that string as the Job name for submission to Deadline. Those arguments are passed along from the \renderfarm\DeadlineRepository6\submission\Modo\Client\DeadlineModoClient.pl script.
So I am trying to do the same thing with Cinema4D. The code looks similar, but I can’t find out where the “NameBox” is being assigned with the file name. It looks like it might be pulling information from a .ini file but I can’t find that file anywhere. So I’m just wondering how I can access the boxes (mainly the NameBox) like I can in the Modo script. Does that clarify things for you?