Eric Sheng

EricSheng

About Me

Expertise
Not Specified
Location
Not Specified
Website

Connect

Recent Forum Posts

Let HDA processor recook instead of using cache automatically? Nov. 17, 2019, 9:38 a.m.

I find a way to work around with this. with onPrepareTask() callback function, we can put the cache checker script in it. And if the cache should be recooked and updated, then delete the cache file. So when the work item be cooked it will not find the cache file and be recooked.
So we can implement the “Automatic” recook logic in our own TOP node.

Let HDA processor recook instead of using cache automatically? Nov. 16, 2019, 5:14 a.m.

Except for setting the cache mode parm to “Write Files” to perform a force recook, can I track if some parameters changed or some files on disk have changed then dirty the work items automatically and recook the work items? I notice the PDG has builtin tracking for node's parameter changes. But the HDA processor will use the cache anyway if the cache mode is set to “Automatic”. I think “Automatic” should be more smart than a file existence checking.

It seems like being talked before:
https://www.sidefx.com/forum/topic/62115/ [www.sidefx.com]
will there be any progress on it? The “Automatic” option is confusing and not so “Automatic” currently.

addExpectedResultData() can work with pdg_cachemode parm Nov. 14, 2019, 9:38 a.m.

I think it's worth to point out that the work_item.addExpectedResultData() can work with pdg_cachemode parameter to create TOP node automatic read/write cache just like the built-in HDA Processor node. But there's no document I can find contain this information until I read some of the source code of built-in TOP node.
It is a very useful feature in my opinion, so I wonder is the PDG still poor documented yet? Especially on how to create our own TOP node work like the built-in nodes.
Anyway, thanks to the source code, it's really helpful.