Hi, I have a question about a TOP Network process (please see the attached picture).
I want to run two steps when executing Dirty and Cook:
1 - Run a Python script that updates or sets a new cache path on a File Cache node.
2 - Then run the actual simulation using a ROP Fetch node.
The problem isn’t with the Python script itself, but rather that the Python Script node seems to execute in the background Houdini session used by TOPs, instead of the current local Houdini session. I want the script to apply changes to my local session, and then trigger the ROP Fetch simulation task.
I suspect that using a Python Script node isn’t the right approach here — I probably need another method to execute the script locally before running the ROP Fetch. Or maybe I could fix the python node by changing parameters like a Generate When parm or Evaluate scripting During parm, etc, not sure at all.
Of course, I could just run the Python script manually and then Dirty & Cook the network, but I have multiple dependent simulation steps, and I don’t want to manually update the File Cache nodes every time.
So, is there a recommended way to achieve this?
TOPNET run a script locally before running ROP Fetch
254 0 0-
- masa90210
- Member
- 24 posts
- Joined:
- Offline
-
- Quick Links
