Hi everyone,
after switching to Deadline 6, I encountered that several of our In-House scripts wouldn’t work anymore.
I’ve narrowed the problem down to the conversion of a python list to an Array for a dropdown menu in a custom UI.
Here’s the original code (simplified):
from System import Array
fps_choice = ["25.0", "29.97", "30.0"]
fps_array = Array[str](fps_choice)
scriptDialog.AddComboControl( "FPS", "ComboControl", "25.0", fps_array, 200, -1 )
whereas this works:
scriptDialog.AddComboControl( "FPS", "ComboControl", "25.0", ("25.0", "29.97", "30.0"), 200, -1 )
Another problem I’m having with this script is that the radio buttons don’t work properly any more:
scriptDialog.AddControl( "FromDeptLabel", "LabelControl", "Department:", labelWidth, -1 )
scriptDialog.AddRadioControl( "FromDept3D", "RadioControl", True, "3D", "DeptGroup", 100, -1 )
scriptDialog.AddRadioControl( "FromDept2D", "RadioControl", False, "2D", "DeptGroup", 100, -1 )
scriptDialog.AddRadioControl( "FromDeptEdit", "RadioControl", False, "Edit", "DeptGroup", 100, -1 )
The labels “3D”, “2D” and “Edit” for each radio button don’t show up any more, just the buttons themselves.
Is there any documentation on the changes in the scripting API for Deadline 6?
Best regards,
Dirk