Eyeon:Script/Reference/Applications/Fuse/Classes/Input/FileControl
From VFXPedia
< Eyeon:Script | Reference | Applications | Fuse | Classes | Input
Contents |
Description
The FileControl adds a dialog used to browse for paths or files on disk. It appears on the tool controls as a text edit box for display and direct entry of filenames, and a button to the right which can be clicked to display the Fusion file browser dialog.
This control returns a Text value. To add a FileControl, set the INPID_InputControl attribute of the AddInput function to the string "FileControl".
Attributes
FC_IsSaver boolean : this attribute determines wether the file dialog may be used to specify files that don't currently exist. FC_PathBrowse boolean : This attribute is used to specify if the file browse dialog is being used to select a file, or a folder. If it is set to true, the dialog will be used to select folders only. The default value is false.
FC_ClipBrowse boolean : This attribute is used to specify if the file browse dialog is being used to select an image or image sequence. WShen specified the dialog will be configured with the correct filter to show only known image file types, and the Gather Sequences checkbox will be enabled. The default value is false. FCS_FilterString string : This attribute is used to specify what file types will be shown by the dialog. The default value is to show All Files, which is equivilant to the filterstring. "All Files (*.*)|*.*||".
A more complex filterstring might appear as
"FBX Files (*.fbx)|*.fbx|DAE Files (*.dae)|*.dae|OBJ Files (*.obj)|*.obj|3DS Files (*.3ds)|*.3ds|DXF Files (*.dxf)|*.dxf|"
.
Example
The following is an example AddInput function that is similar to the the Clip control on a Loader tool.
InFile = self:AddInput("File", "File", { LINKID_DataType = "Text", INPID_InputControl = "FileControl", FC_ClipBrowse = true, })
Tips for FileControl (edit)
EyeonTips:Script/Reference/Applications/Fuse/Classes/Input/FileControl