How to Deleting Cache Files Generated by ROP with Python

   1374   1   1
User Avatar
Member
42 posts
Joined: Feb. 2019
Offline
Hello Guys
I Made a HDA For My Pipeline
I Added a Toggle Parameter Into My HDA and I Called "Remove From Disk"
So , I Wanna Removed Cache Files Like : "bgeo bgeo.sc vdb ,etc..." When Toggle Button Has Been Ticked , With Python Code
Thanks Your Help !
User Avatar
Member
94 posts
Joined: July 2019
Offline
You can try to utilize TOP nodes to do the job. The reason for this, if you rendering/saving files in TOPs, you can use the @pdg_output attribute to remove those files by TOP File remove node and don't parse paths, filenames or frames manually.
I'm not very confident with PDG at the moment to give you a complete example, but you can take a look at the last hip file at the topic: https://www.sidefx.com/forum/topic/62404/?page=1#post-282398 [www.sidefx.com]
Edited by Faitel - July 29, 2021 17:28:19
  • Quick Links