Jump to content

Trigger Python SOPs


papsphilip

Recommended Posts

i would like to trigger a file cache and some Python SOPs in order - independent of timeline.

File cache i guess is easy? pressbutton() function inside another python SOP to press the "Save to Disk" button. But python SOPs have to wait until filecache is done

After that, first python SOP needs to be evaluated every frame.

Second python SOP needs to calculate once after the first one is done.

How can i automate it so that i just press a button to cook everything in the correct order?

The way i am doing it now is manually,

1)saving the cache

2)then enabling the display flag on the python node and pressing play on the timeline.

3)when that is finished enabling the display flag on the second python.

Not practical at all.

Any tips to automate this would be greatly appreciated. avoiding TOPs if possible.

 

trigger_pythonSOPs.hiplc

Link to comment
Share on other sites

2 hours ago, Atom said:

I believe if you reference `$F` or hou.Frame() inside a python script, it forces it to run every frame. Not sure of that helps.

i dont want to have to hit play on the timeline to cook every frame. it already works like that. i need the python sop to cook a frame range like a filecache would. you dont have to actually play the timeline in order to cache each frame. But that is only one part of what i am looking for. The second part is triggering the python sops one after the other.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...