Juraj Posted June 30, 2017 Share Posted June 30, 2017 (edited) Hello, in Houdini 15 I was using hou.ui.selectFile() dialog to get user's input and I would process it further in python. I used the same function to let user select files or folders, based on the needs of a tool. Now I updated to 16 and the function does not seem to enable user to select a folder, it works only with selecting a file. Does anybody know if there is a way to select a folder in 16? I want to batch process files in a directory and I would like to use file browser dialog to let user set it. In worst case I could use hou.ui.readInput(), and to ask user to enter a path there, but this is super user-unfriendly Thanks, Juraj Edited June 30, 2017 by Juraj Quote Link to comment Share on other sites More sharing options...
Hartman- Posted August 8, 2017 Share Posted August 8, 2017 Juraj, Do you have any parameters set when calling the hou.ui.selectFile() method? I'm doing some quick tests in the Python shell and it looks like its working fine for me. I'm selecting a folder and its printing out the correct path to the shell, even when I specify a file type. Quote Link to comment Share on other sites More sharing options...
Juraj Posted September 30, 2017 Author Share Posted September 30, 2017 (edited) Hi, I tried to update to latest build 16.0.736 (linux), but it isn't working. I can simply select files, but when I select folder and click accept, nothing happens, selection is accepted only if I select a file. In 16.0.557 it works normally, but not in 16.0.600, 16.0.633, 16.0.736 Edited September 30, 2017 by Juraj tested more builds Quote Link to comment Share on other sites More sharing options...
MrScienceOfficer Posted October 6, 2017 Share Posted October 6, 2017 hou.ui.selectFile(file_type=hou.fileType.Directory) works on 16.0.736. 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.