Jump to content

Stuck on cooking and HOM fundamental (Python)


Recommended Posts


Hey all,

Sorry to add another Python cooking question (I've seen a lot, searching), but here goes.  

I have two subnets, a 'source' (from an .fbx) and a 'target'.  The Objects in each correlate by name, and those in the source subnet are keyframe-animated.  I'm driving the target Objects via:

sourceMg = sourceNode.worldTransform()

# beep boop, additional calculations go here


It works great, but once Houdini caches the frame the script is no longer (apparently) cooked, which makes sense--I pasted my code into a Python Script Object for convenient testing, which I suppose is not its intended use.  If the HOM documentation is telling me what to do instead, however, I don't see it.  There's the 'Python object' page, but I don't know that this is quite the same.

In short: my script works as intended, but after the scene plays through once, Python stops moving the target nodes (I'm guessing because Houdini quits cooking it, since it's not doing anything Houdini expects it to do, like make geometry).  Where does a script like this belong?  I'm sure there's something embarrassingly obvious I'm missing--it's just a little extra confusing to me because I have to manipulate everything on the Object level.

Thanks in advance for the help!  If anything's unclear, lemme know :)

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.

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