Fomal Posted July 1, 2008 Share Posted July 1, 2008 Hi, I made a python script that runs from the shelf. I'd like to have the script run when I press an update button created in a node. Looked at the callback function but can't figure out how to get it to work. Hope someone can help cheers Coen Quote Link to comment Share on other sites More sharing options...
eetu Posted July 1, 2008 Share Posted July 1, 2008 In the "scripts" tab of your hda add a PythonModule and put your function there, e.g. def runMe() In your button callback, enter hou.pwd().hdaModule().runMe() Better if you take a look at the mdd writer hda at http://undo.fi/houdini/mdd/ - it has a button set up that runs a script. There might be better ways to do it, but at least that works for me eetu. Quote Link to comment Share on other sites More sharing options...
Fomal Posted July 1, 2008 Author Share Posted July 1, 2008 (edited) thanks eetu, starting to make sense now. But is that only suitable for digital asset? Just trying it on a null now and the method doesn't seem to work Edited July 2, 2008 by Fomal Quote Link to comment Share on other sites More sharing options...
Fomal Posted July 2, 2008 Author Share Posted July 2, 2008 Nevermind... Got it to work, forgot some brackets Thanks for the example eetu Quote Link to comment Share on other sites More sharing options...
3dFrosty Posted March 27, 2009 Share Posted March 27, 2009 Nevermind... Got it to work, forgot some brackets Thanks for the example eetu Hey guys,, I'm trying this out now.. on a null..? how did you get it working Coen/Fomal..? or do I have to make it into a hda..? I'm struggling to shovle the script into a function also..? any help would be great..? cheers ben. 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.