Jump to content

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


Juraj

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
Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

  • 1 month later...

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
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...