Hello fellow Deadliners, I have put together a ui based around the ScriptUIExample which includes folder browsers and file browsers. When I run the UI from the general or submission panel in the launcher, there are no files showing when I go into the folder after using the FileBrowserControl. I have checked through Windows explorer and the files are there. If I drop down the list box that is supposed to hold the filename, it has a list of all the files in there, which is not what is supposed to happen.
The code for the ScripUIExample is as follows:
scriptDialog.AddRow()
scriptDialog.AddControl( “FileLabel”, “LabelControl”, “Select File”, labelWidth, -1 )
scriptDialog.AddSelectionControl( “FileBox”, “FileBrowserControl”, “”, “All Files (.)|.”, dialogWidth - labelWidth - 24, -1 )
scriptDialog.EndRow()
My example is as follows:
scriptDialog.AddRow()
maxFileButton = scriptDialog.AddSelectionControl( “maxFile”, “FileBrowserControl”, “”, “MAX (.max)|.max” , dialogWidth - labelWidth - 24, -1 )
scriptDialog.EndRow()
The only difference is the filter, which I have tested on mine as ‘All files’ as well, but neither seems to be performing as they should. I am confident that I have looked into this and it is the control that may be incorrect, but would appreciate some feedback as to the nature of this control and its usage.
The rest of the UI runs fine, though I am just beginning to test the scripts in R&D and this is the first hurdle I have come across. I did a check against ‘fileBrowserControl’ but nothing came up so I started this thread. if anyone else has a thread, please point me to it and I will make additional posts there.
Also, if anyone can see if I have done this incorrectly, I would welcome the critique and information
Thanks