Search - User list
Full Version: hou.ui.selectFile() - default_value ignored
Root » Technical Discussion » hou.ui.selectFile() - default_value ignored
whalerider
… when i specify start_directory.
is that as intended or a bug?
why can't both parameters co-exist?
niko3d
Im having the exact same issue just now :¬/ smells like a bug to me.
graham
You can get it to work if you make sure your directory ends with a /.

The following will work correctly
hou.ui.selectFile(“/tmp/”, default_value=“test.otl”)

however this will not
hou.ui.selectFile(“/tmp”, default_value=“test.otl”)

It is still a bug however.
niko3d
Cool thanks for the workaround tip :¬)
graham
Submitted a bug for this issue. 37398
whalerider
Thanks.
I've updated my camera transfer tools code.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB