  | | | directory browser through scripting? | directory browser through scripting? 2005-03-28 - By Steven Caron
Back http://archives.itg.uiuc.edu/softimage/xsi/2004-12/msg00043.htm
earlier thread. not sure if it meets your purposes
On Mon, 28 Mar 2005 10:40:05 -0800, Karen Chan <kchan@(protected)> wrote: > Yes...but that forces me to select a file...I only want to select a > directory... > > Thanks though! > Karen > > Hans Payer wrote: > > >dim oFileBrowser > >set oFileBrowser = XSIUIToolkit.FileBrowser > > > >oFileBrowser.DialogTitle = "Select a file" ' set the title of the > >file browser > >oFileBrowser.InitialDirectory = "c:\" ' set the initial > >directory > >oFileBrowser.FileBaseName = "foo" ' set the > >default file name > >oFileBrowser.Filter = "Text (*.txt)|*.txt|All Files (*.*)|*.*||" > >' set the filters > >oFileBrowser.ShowOpen ' show an open > >file dialog > > > >logmessage VB_LF > >' if the user selected a file > >If oFileBrowser.FilePathName <> "" Then > >' display info on the selected file > > logmessage "Details on the file that was selected:" > > logmessage "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" > > logmessage "File path name : " & oFileBrowser.FilePathName > > logmessage "File Name : " & oFileBrowser.FileName > > logmessage "File base name : " & oFileBrowser.FileBaseName > > logmessage "File extension : " & oFileBrowser.FileExtension > > logmessage "Path : " & oFileBrowser.FilePath > >' the user did not select a file > >Else > >logmessage "User pressed cancel" > >End If > > > >-- --Original Message-- -- > >From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf > >Of Karen Chan > >Sent: Monday, March 28, 2005 10:11 AM > >To: XSI@(protected) > >Subject: directory browser through scripting? > > > >Hey all, > >What I'm trying to do is create a script that when run, would prompt the > > > >user for a directory path and then import all of the different sequences > > > >of images from that directory into the FXTree. > > > >Now, in the SDK, I'm only seeing XSIUIToolkit.FileBrowser - am I just > >missing the correct command or is this a limitation within XSI? > > > >Thanks in advance! > >Karen > >--- > >Unsubscribe? Mail Majordomo@(protected) with the following text in > >body: > >unsubscribe xsi > > > > > >--- > >Unsubscribe? Mail Majordomo@(protected) with the following text in body: > >unsubscribe xsi > > > > > > > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi > --- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |