Hi!
I know absolutely nothing about python but I'm very comfortable with vex. I would like to store a .json content on a vex string. If it's not possible to read a .json directly from a vex wrangle, can somebody tell me exactly how to do it with python? ...could be stored in a Detail attribute.
Thanks
-Olivier
Json file to Vex String?
1320 4 0- olivierth
- Member
- 1004 posts
- Joined: April 2017
- Offline
- animatrix_
- Member
- 4458 posts
- Joined: Feb. 2012
- Offline
VEX has json functions:
https://www.sidefx.com/docs/houdini/vex/functions/json_loads.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/json_dumps.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/json_loads.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/json_dumps.html [www.sidefx.com]
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
- olivierth
- Member
- 1004 posts
- Joined: April 2017
- Offline
- jsmack
- Member
- 7658 posts
- Joined: Sept. 2011
- Online
animatrix_
VEX has json functions:
https://www.sidefx.com/docs/houdini/vex/functions/json_loads.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/json_dumps.html [www.sidefx.com]
wow, is that from when they added dict type to vex?
- animatrix_
- Member
- 4458 posts
- Joined: Feb. 2012
- Offline
jsmackanimatrix_
VEX has json functions:
https://www.sidefx.com/docs/houdini/vex/functions/json_loads.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/json_dumps.html [www.sidefx.com]
wow, is that from when they added dict type to vex?
I think so as dictionary attributes were also added in 18.5.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
-
- Quick Links