jim c Posted August 24, 2011 Share Posted August 24, 2011 I'm trying to customize a DA so that you can pick a base directory for various parts, for example geometry, and then the various geometry file nodes use that base directory and add on the actual file name of hte geo. The file parameter gives you the browser for files, but is there a way to get it to only accept directories, or strip off the selected filename automatically? You can always remove the file part manually, but that's kind of a drag. Quote Link to comment Share on other sites More sharing options...
graham Posted August 24, 2011 Share Posted August 24, 2011 If you select a directory in the file chooser and hit Accept it will use that directory. If you dive into your target directory and try and hit Accept it won't allow it. You basically always need to select something: file or directory. Quote Link to comment Share on other sites More sharing options...
Erik_JE Posted August 24, 2011 Share Posted August 24, 2011 hou.ui.selectFile(file_type=hou.fileType.Directory) This is as good as it gets for selecting directories using hou.ui to my understanding. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.