View Full Version : get folder from user

09 September 2008, 04:29 AM
I need to get a folder path by showing up a UI widget. While there is a UIWidget named fileBrowser that can be used to get the user to select a file, I couldnt find one that returns only folder name. and the user doesnt have to select a file... does anyone know???

09 September 2008, 07:56 AM
give the parameter a control type siControlFIlePath and then a SetAttribute(siUIOpenFile, false).

all the control type is all listed in the docs here

and the attributes for each control type is suggested there too, but here is the link for all ItemAttributes you can assign to a Parameter object:

Get used to read these things in the SDK documentation, is full of examples and things are all there.
Use the pluggin manager to connect to the SDK examples workgroup, they have lots of examples there too.

10 October 2008, 05:41 PM
You can also use XSIUIToolkit's "PickFolder" method to initiate a folder picking session :)

10 October 2008, 03:39 AM
hey.. thanks for the help guys

CGTalk Moderation
10 October 2008, 03:39 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.