hou.ui.selectFile() - default_value ignored

   6915   5   0
User Avatar
Member
194 posts
Joined:
Offline
… when i specify start_directory.
is that as intended or a bug?
why can't both parameters co-exist?
User Avatar
Member
338 posts
Joined: 9月 2006
Offline
Im having the exact same issue just now :¬/ smells like a bug to me.
User Avatar
Member
1908 posts
Joined: 11月 2006
Offline
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.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
338 posts
Joined: 9月 2006
Offline
Cool thanks for the workaround tip :¬)
User Avatar
Member
1908 posts
Joined: 11月 2006
Offline
Submitted a bug for this issue. 37398
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
194 posts
Joined:
Offline
Thanks.
I've updated my camera transfer tools code.
  • Quick Links