Jump to content

Saving changes to promoted wrangle snippet


Nickpwalsh

Recommended Posts

Hello, I'm trying to create an HDA that can be used to learn scripting through Houdini. I wanted to be able to promote the wrangle snippet box to the interface of the HDA. It works fine except for when I make changes in the textbox on the tool and then try to save the node type. It does not save any of the changes I made. Thanks for any help on this!

 

Cheers,

Link to comment
Share on other sites

one thing to be aware of when promoting wrangle's code parm is that by default it will still evaluate all node paths relative to the Wrangle node, not your asset

so to access any parm on your node you would have to do chf('../parm'); instead of chf("parm");

to fix that, make sure you modify Evaluation Node Path on your wrangle to point to your asset, so something like .. if your asset is directly one level above the wrangle

then using chf('parm') in the snippet on your HDA directly will work

 

  • Like 1
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...