I'm having a problem to get a StringParmTemplate working. I would like to create a parameter where the user is able to pick a textures path for further processing.
But unfortunately it not letting me pick a folder and asking for a file instead. I searched the forum, looked up the documentation and googled with no luck.
Hi Jakop, yes it seems to be like that. its a pain… I would also love to see a solution for this. Currently i copy paste directories or select a file and delete it from the string.
This function is written to the Houdini Source module. Taking the triggered node as a variable and setting the string with the path into the node holding the parameter.
deftexpath(node):texpath=hou.ui.selectFile(title='Choose texture folder for import...',file_type=hou.fileType.Directory,chooser_mode=hou.fileChooserMode.Read)hou.node(node).parm('texpath').set(texpath)