resume a .sim file simulation in hython, please help.

   1919   1   1
User Avatar
Member
47 posts
Joined: March 2010
Offline
Hi, I got a heavy sim with initial .sim file save out. I like to continue the sim in hython or hbatch.
I got stuck on setting it up. Here is what I do now, placing a dopnet inside a new scene, with initial state set to sim file and explicit cache to continue produce the subsequent sim file. This works fine on UI. but how would I trigger this dopnet simulation in hython??

please help..
Edited by - Dec. 28, 2010 22:21:38
User Avatar
Member
47 posts
Joined: March 2010
Offline
found a way of doing it, just post it up ..
In case anyone like to know
————————————–
hou.cd(“/obj”)
dopn=hou.pwd().createNode(“dopnet”)
dopn.parm(“initialstate”).set(“myBakedOutSimFile”)
dopn.parm(“startframe”).set(“theFrameOfCurrentSimFile”)
dopn.parm(“explicitcache”).set(1)
dopn.parm(“explicitcachename”).set(“outputSimFile”)

hou.setFrame(“frameCookUpTo”);
dopn.cook();
  • Quick Links