hou.topNode.dirtyTasks() parameters?

   2518   3   3
User Avatar
Member
403 posts
Joined: 4月 2017
オフライン
I'm trying to make a quick script button that cooks a TOP network when I push a button on the HDA. I want to use the dirtyTasks() or dirtyAllTasks() functions, but I get an error saying that both functions are looking for at least two arguments. No arguments are provided in the documentation.
MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
User Avatar
Member
603 posts
Joined: 9月 2016
オフライン
what's the code that is failing? dirtyAllTasks is called on a topnode and takes one boolean parameter, True meaning also delete the output files on disk.
User Avatar
Member
536 posts
Joined: 7月 2009
オフライン
Ditto I ran into this issue. There is no argument provided. Def a document bug.

https://www.sidefx.com/docs/houdini/hom/hou/TopNode.html [www.sidefx.com]
dirtyAllTasks()

Dirties all the tasks in a PDG graph so that when the graph cooks again, it will cause a complete recook.
User Avatar
Member
571 posts
Joined: 5月 2017
オフライン
Both dirtyTasks and dirtyAllTasks will be documented with their arguments in the next daily build. They both take in a boolean argument (remove_outputs) which means to remove all generated files from disk.
  • Quick Links