Hey, I have a custom compression type in python which we use to get data from other programs and other versions of houdini. For this, it's saved as a bgeo.mg
I load the file and decompress it in python so the bgeo and all its contents are a string. In a python node, how would I take that string and load it as if it was a file. I'd rather avoid writing out another file to load back in unless it's all in ram anyway. Does anyone know how and can give me an example? It doesn't seem to be anywhere in hou.Geometry() when I looked through the docs.
Thank you in advance!
python load string as file?
1646 1 1-
- flarefox
- Member
- 15 posts
- Joined: July 2005
- Offline
-
- flarefox
- Member
- 15 posts
- Joined: July 2005
- Offline
flarefox
Hey, I have a custom compression type in python which we use to get data from other programs and other versions of houdini. For this, it's saved as a bgeo.mg
I load the file and decompress it in python so the bgeo and all its contents are a string. In a python node, how would I take that string and load it as if it was a file. I'd rather avoid writing out another file to load back in unless it's all in ram anyway. Does anyone know how and can give me an example? It doesn't seem to be anywhere in hou.Geometry() when I looked through the docs.
Thank you in advance!
Ah, a friend pointed me to $HFS/houdini/GEOio and it seems like that will do it.
Thanks!
~Dee
-
- Quick Links
