(Houdini, Python)

Houdini Python external JSON

Load JSON from Web and Cache it

Simple try to load JSON from an external URL. The Python SOP is animated, but with static non changing JSON data. To avoid a request on every frame change in the animated Python SOP, I've stored the data in a hou.expressionGlobals key.
This gives a difference from uncached 4 Frames to cached 120++ Frames per second. I know that loading from an external Url is very time consuming, but maybe it helps at loading local files, too.
I don't know if this is the right way to store data Frame independent, but it's working :-)