So it's not allowed to call setTimeDep() at the end of the cook then? I don't know enough Houdini API to answer that myself, but if it is allowed, then figuring out accurately whether or not it was time dependent during the cook seems the best strategy to me.