[Sidefx-houdini-list] Python: Menu scripts errors on load
jlait at sidefx.com
Wed Sep 4 11:09:39 EDT 2013
On Fri, Aug 30, 2013 at 09:37:17AM +0200, Nick Nimble wrote:
> *Store data on root node *
> It turned out that although this problem still exists and needs to
> be accounted for using a exception, at the same time I had some
> trouble with storing userData to the root node.
> (hou.node("/").setUserData() and .userDataDict(), allows to store
> and fetch string data on any node. The root node is the parent node
> of /obj, /shop etc)
> As far as I remember this should be stored with the file, but as it
> appears it loses all its data when a hipfile is closed and reloaded.
> I switched to the /obj node to store this data (version management)
> and that does the trick.
> Does any one know if this is intended/has changed or am I just confused?
The root node, /, is the OP_Director.
When we load a .hip file, we do
OP_Director *dir = OPgetDirector();
Thus, the OPdirector itself isn't read off disk, only the contents
I'd recommend just using /obj.
- Jeff Lait
More information about the Sidefx-houdini-list