Jump to content

Problem with undefined variable


Recommended Posts

I'm having a problem with a tutorial I'm doing. Since it's a paid tutorial, I don't feel comfortable posting my file, so instead I'm going to post a screenshot, which hopefully will be enough, but if it isn't I'll figure out a way to get something else posted.

In the tutorial, I'm putting a simple animation on a cube, which is in the nodes to the left in my screenshot. I then copy the animated cube onto a grid of points, but only at the points that are colored red, which is also controlled by an animation with an attribute transfer, which is the node tree on the right. The tutorial uses a chop net, which is something that I have zero experience with, so it could be the problem is there but I don't think so.

The problem I'm encountering is that after 1) creating an attribute called crf, and 2) storing the frame that the animation for each cube beings on as the value for crf, 3) I create a stamp variable with the name crf that uses the stored value for $crf and I get an error that 4) $crf is undefined.

I don't know enough about how Houdini creates and stores variables to troubleshoot this. I don't know if it's a problem with using crf as the name in the attribute create node, and then again in the stamp variable, or what. When I look at the geometry spreadsheet at the group node, everything looks fine- the expected crf  values are listed for each point.

The bigger problem is that I can open the supplied file from the tutorial author and it works fine there, even though by my best inspection the nodes are all identical between the source file and my attempt to recreate it.  One thing that could be an issue I suppose is that I'm up to date with my Houdini build and the tutorial file was likely made with a previous file, but I'm not enough of a Houdini user to know what has changed between versions.

Am I missing something obvious about variables that I should have done (or not done)? Thanks in advance for any help.

varialble_problem.png

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