Jump to content

Setting parameter values from within a node


Recommended Posts

Hey Guys,

I have a node I've written that does some cooking and outputs the answer to some float parameters on the node. I then reference that parameter from other nodes using a simple ch() func.

I have an internal cache (stl vector) of the solved values per frame. After going to a frame if it's unsolved I go though a solving loop, otherwise I set the cached value for that frame directly . This all works well but if I only display the nodes which reference these channels they don't update properly. These other nodes are requesting the channel val from my node, but since my node doesn't "cook" it returns whatever happens to be in the float field. My node has no inputs or output wires.. it's all though ch() references that it communicates to other nodes.

I'm guessing I need to make it a channel function (like raw() which seems to have disappeared in H9?). Rather then have an internal cache that's of my own design it would probably be better to use some houdini convention for this so it plays nice with the rest of the cooking scheme.

Well, if that explanation wasn't too confusing.. any ideas on what the "right" way to do this is?

thnx

Daniel

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