Jump to content

Command for loading/unloading dso


Recommended Posts

Hi all,

I have searched on the forum and I have not found many information regarding reloading

dso without restarting houdini.

So I've tried to write a command to do that.

It's still in pre-pre-pre-pre alpha :)

Use it at your own risk!

The command is "dsoUtil" and supports 3 flags:

dsoUtil -l <full_path_filename> // loads a dso

dsoUtil -u <name> // unload a dso given the name. the dso name is the same as the file name (without extension)

dsoUtil -s // shows the names of manually loaded dso

Please note:

- when a dso is unloaded, the SOP name still remains in the Op Table,

do not try to create the op in this case, otherwise houdini will crash !

I'm trying to fix this.

- command cannot unload SOPs loaded automatically at startup

- built for houdini 10.0.501 Windows 32-bit

- currently the command works only for SOPs

How to use:

- compile your SOP but don't put the dso in the houdini start-up search folder

- launch dsoUtil -l <filename>, e.g. "C:\myDsoFolder\MySop.dll"

- do all the tests

- check the manually loaded dso name with dsoUtil -s, if needed

- delete all the nodes of type MySop

- unload the dso with dsoUtil -u MySop

- change the SOP code, recompile, etc.

- reload the sop

- and so on...

Hope this can be useful

J.

dsoUtil.zip

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