caleb Posted January 5, 2010 Share Posted January 5, 2010 Hi! I'm looking to maintain persistent data between cooks in an HDA (SOp) that I am creating. The SOp has buttons with associated Python callback functions, and I would like to reduce redundant computation by storing results in class-owned data. Does anyone have any experience or pointers? Other approaches to maintaining persistent data would be welcome as well. I am looking to store statistical data (as floats, etc) as well as list data. I could store this info within Houdini data (lists into point attributes, etc.), but that's inelegant, and lists are faster to access, which is much of the initial reasoning for keeping data in lists in the first place. Thanks! -caleb Quote Link to comment Share on other sites More sharing options...
Guest Swann Posted January 6, 2010 Share Posted January 6, 2010 http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=17926 impatient you are, young apprentice Quote Link to comment Share on other sites More sharing options...
caleb Posted January 6, 2010 Author Share Posted January 6, 2010 Not so much impatient as experienced... The wider the net, the better the catch. ...as to "Apprentice" - I'll accept that, as Yoda has coded Hython for 800 years. I'll cop to having an infinite amount to learn from anyone... ...even though my first version of Houdini was either PRISMS (three point something, I think), ICE, or alpha 0.9 - depending on how you count it. I worked at Side Effects before SGI introduced the Indigo when it was a one-room shop on Maude Street. Now you've got me started... My HP calculator that I got in University is older than most of my coworkers. By gum, I taught Jim Butterfield how to use his Commodore! "Apprentice!" Why, it irks me some. Clearly I've gotta work on that ego still. Thanks! ;-) -caleb http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=17926 impatient you are, young apprentice Quote Link to comment Share on other sites More sharing options...
Guest Swann Posted January 6, 2010 Share Posted January 6, 2010 Clearly I've gotta work on that ego still. Thanks! ;-) -caleb Yep, now I know why "Ghost Rider" is such a baaaad film Welcome. Quote Link to comment Share on other sites More sharing options...
caleb Posted January 6, 2010 Author Share Posted January 6, 2010 Nothing but tact. ;-) I never actually got around to watching Ghost Rider. For the most part, the FX weren't bad, though. It was a great crew. -caleb Yep, now I know why "Ghost Rider" is such a baaaad film Welcome. Quote Link to comment Share on other sites More sharing options...
caleb Posted January 6, 2010 Author Share Posted January 6, 2010 For the interest of anyone with curiosity, The SESI forum Thread I started got a more useful answer: http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=17926 So far, there is no straightforward way to maintain my own Python class data to be persistent between cooks, but there is an acceptable workaround of converting Python data to strings by means of the repr() function, and stuffing those strings into hidden string parameters. I haven't tried this for large datasets yet, but this is adequate to my needs. -caleb Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.