[Sidefx-houdini-list] Save hou.session.listX with hip file

Andrew Lyons tstexture at gmail.com
Sun Apr 8 14:57:23 EDT 2012


Two options come to mind:

1./ Put it on disk, and read it off disk during the onCreated callback
using python shelve or simplejson:
http://docs.python.org/library/shelve.html
http://pypi.python.org/pypi/simplejson/

2./ Create an obj null node that does nothing but store py data in a
hip as per Graham's suggestion - and perhaps Grahams tools:
http://www.houdinitoolbox.com/houdini.php?asset=38

Cheers


On 8 April 2012 11:50, Nick van Zutphen <nvanzutphen at live.com> wrote:
> Maybe I should be a bit more specific, this data needs to be available to onCreate.py. I guess node specific data isn't?
>
> Cheers,
>
> Be Nick, be Nimble
> ----
> http://www.nickvanzutphen.com/ngtl
>
>
>
>
> On Apr 8, 2012, at 7:28 PM, Graham Thompson wrote:
>
>> The best way to save data is to use node user data:
>> http://www.sidefx.com/docs/houdini12.0/hom/nodeuserdata
>>
>> On Sun, Apr 8, 2012 at 11:11 AM, Nick van Zutphen <nvanzutphen at live.com> wrote:
>>> Hi!
>>>
>>> I just discovered that hou.session is not saved with the hip file :-(. I would like to store a dictionairy or a list for simplicities sake, which is accessible by scripts and saved with the hip file.
>>> I discovered: hou.appendSessionModuleSource, but its not totally clear what its proper usage is. Any suggestions?
>>>
>>> Be Nick, be Nimble
>>> ----
>>> http://www.nickvanzutphen.com/ngtl
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Sidefx-houdini-list mailing list
>>> Sidefx-houdini-list at sidefx.com
>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>> _______________________________________________
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>
>
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list



-- 
=======================================
Andrew D Lyons | Digital Artist | http://www.tstex.com
=======================================



More information about the Sidefx-houdini-list mailing list