How to automate dumping all the parameters for a subnet?

   1016   4   1
User Avatar
Member
73 posts
Joined: 4月 2020
Online
Hello Experts,

I need to write out to a file all the parameters and their values for a subnet with a complex parameter interface -- essentially a table with the parameter labels and their evaluated content. The parameters in question are very complex, with a lot that are only available if certain toggles are true, etc. I would like to automate this, since it's going to take hours, and so I've been trying to find a way, perhaps through the hython API, to grab these things out of the parameter interface. Writing it out is easy, but figuring out how to get the stuff to write out is eluding me. I haven't been able to find anything.

If anyone knows an approach I might take, I'd love to hear about it. And of course, my apologies if I've missed a post already about this -- I didn't find anything in my searches.

Thanks so much,
Mary
User Avatar
Member
4500 posts
Joined: 2月 2012
Offline
Hi,

You can loop over hou.node.parms() using Python HOM.
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
User Avatar
Member
8535 posts
Joined: 7月 2007
Offline
or use Attribute From Parameters SOP and dump resulting "parms" dictionary attribute to .json file using python
this way you can utilize features like flattening of multiparms and ramps etc.
Edited by tamte - 2023年5月4日 02:54:02
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
73 posts
Joined: 4月 2020
Online
Thank you all for these suggestions! I will go test it all out!

Best wishes,
Mary
User Avatar
Member
7747 posts
Joined: 9月 2011
Offline
You could save the node as cpio, if you intend to only read back in to houdini.
  • Quick Links