I have large networks that I want to automatically record as python code so I can run it in a python script later on and recreate the network, varying parm values procedurally. I don't want to make otl's, hda's. I want to do it like you would in cmd file. From ready made networks so I don't have to echo and recreate networks by hand again to record the building of the network.
I can loop through and grab parm values and node names and kinda do it in a top town way but its time consuming and needs editing for every different network. Is there a ready made .hou method that will do just that, grab a selected node network and make a recreatableb copy as python code/commands in a py module?
How to save a node network as py script?2221 4 0
Actually, that is helpful. Thanks. I was confusing .node and .Node classes.
Cheers. It kinda helps combined with the connections switch but still requires a whole host of other overhead to setup soemthing workable. Pretty much what I have been doing so far.
If there isn't a network, “HDA” style option that works in a more global manner on a whole network, that would be what I am ideaaly seeking. Exporting out python or c++ style scripts from unity and maya is a straightforward, defined routine. I was thinking it would be the same in the hou interface but maybe not.
- Quick Links