PDA

View Full Version : get folder from user


varunbondwal
09-17-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???

tc
09-17-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 http://softimage.wiki.avid.com/sdkdocs/siPPGControlType.htm#siControlFilePath

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: http://softimage.wiki.avid.com/sdkdocs/siPPGItemAttribute.htm#siUIOpenFile

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.

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

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

CGTalk Moderation
10-10-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.