kare Posted July 30, 2012 Share Posted July 30, 2012 Hi, Is there any way to reload dso path. I am testing with houdini hdk examples for every time I do a change, I have to open new houdini to check the changes.. Thanks, Kare Quote Link to comment Share on other sites More sharing options...
goldleaf Posted August 8, 2012 Share Posted August 8, 2012 (edited) Sort of, but it's pretty easy to nuke your Houdini session, so be forewarned. You'll have to rename your *.so/*.dll (and quite possibly the operator name itself), but the following is some Python code that does this (run in the Python Shell, or make a shelf button for it): hou.nodeTypeCategories()['Sop'].loadDSO('/path/to/dso/foo.so') Where 'Sop' would be the operator type. Note that hou.nodeTypeCategories() is a dictionary, so hou.nodeTypeCategories().keys() will show you what it's looking for. Again, this is potentially quite dangerous (and I've only played around with it for a few minutes with a SOP), but it did seem to work, keeping the above caveats in mind. And it could be useful, when doing lots of little changes that require re-compilation. Edited August 8, 2012 by goldleaf Quote Link to comment Share on other sites More sharing options...
cyybermax Posted August 8, 2012 Share Posted August 8, 2012 (edited) ouuu mannn, At times when I created my HDK plugins, I restarted Houdini every time But Indeed, SESI needs to create some plugins manager, where User just can click on "reload" for some plugin. Edited August 8, 2012 by cyybermax Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted August 8, 2012 Share Posted August 8, 2012 ouuu mannn, At times when I created my HDK plugins, I restarted Houdini every time But Indeed, SESI needs to create some plugins manager, where User just can click on "reload" for some plugin. Maya style ? No thx, i don't want this in houdini.... Quote Link to comment Share on other sites More sharing options...
Alanw Posted August 9, 2012 Share Posted August 9, 2012 Anything would be better than nothing. Quote Link to comment Share on other sites More sharing options...
kare Posted August 10, 2012 Author Share Posted August 10, 2012 Sort of, but it's pretty easy to nuke your Houdini session, so be forewarned. You'll have to rename your *.so/*.dll (and quite possibly the operator name itself), but the following is some Python code that does this (run in the Python Shell, or make a shelf button for it): hou.nodeTypeCategories()['Sop'].loadDSO('/path/to/dso/foo.so') Where 'Sop' would be the operator type. Note that hou.nodeTypeCategories() is a dictionary, so hou.nodeTypeCategories().keys() will show you what it's looking for. Again, this is potentially quite dangerous (and I've only played around with it for a few minutes with a SOP), but it did seem to work, keeping the above caveats in mind. And it could be useful, when doing lots of little changes that require re-compilation. Thanks goldleaf, It is loading the new DSO, but what I want is to reload the existing dso... Is there any other solution for this? right now I am renaming my C file and compiling it... Quote Link to comment Share on other sites More sharing options...
kubabuk Posted August 10, 2012 Share Posted August 10, 2012 Is there any other solution for this? I'm afraid not, unfortunately. 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.