Jump to content

reload dynamic libraries in linux(dso)


Recommended Posts

  • 2 weeks later...

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 by goldleaf
Link to comment
Share on other sites

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 by cyybermax
Link to comment
Share on other sites

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.... B)

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...