Atom Posted April 16, 2015 Share Posted April 16, 2015 Hi All, I have a short python script that is running as a button the SHELF. I have some hard coded strings in my script and it would be nice to move them up one level so an end user could type in values. Can this be done with a SHELF tool or do I have to convert my tool to an HDA? Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted April 16, 2015 Share Posted April 16, 2015 hou.ui.readMultiInput Quote Link to comment Share on other sites More sharing options...
Atom Posted April 16, 2015 Author Share Posted April 16, 2015 (edited) Thanks for the link. I guess if I have to use a popup form that would be last choice. The strings in my code are more like properties that get set once depending upon the scene and OS. Then you click the button over and over to use those settings. It would be nice if the SHELF tool had a parameter sheet like nodes. Edited April 16, 2015 by Atom Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted April 16, 2015 Share Posted April 16, 2015 You can call shelf tool with a modifier key, so if ALT is pressed it will show popup, otherwise just execute the tool. Quote Link to comment Share on other sites More sharing options...
michael Posted April 16, 2015 Share Posted April 16, 2015 and if these values are based on the file, the dir structure and the OS etc...then you could gather them when Houdini loads the scene. Quote Link to comment Share on other sites More sharing options...
Atom Posted April 17, 2015 Author Share Posted April 17, 2015 Thanks for the tips. @mantragora: The ALT-Click might be a way to go for the popup dialog. @michael: I am detecting as much as possible but this is an exporter that calls a 3rd party tool that could be installed on any drive. So some user interaction is probably required to specify where the tool is installed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.