Jump to content
Juraj

hou.ui.selectFile() not selecting folders in h16

Recommended Posts

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 by Juraj

Share this post


Link to post
Share on other sites

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.

 

 

hou_pythonSelectFile.PNG

Share this post


Link to post
Share on other sites

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 by Juraj
tested more builds

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×