Cache Invalidation Caused by Unrelated Layer Parameters
I'm developing an ARB (After Effects custom parameter) that manages multiple layers.
Within the ARB, I store `AEGP_LayerID`s and use `AEGP_GetLayerFromLayerID` to retrieve `LayerH` handles. Then, I obtain frame data using the render suite. However, when the layer associated with a given ID changes (for example, a shape layer's path is modified), the cache is not invalidated the previously cached result is still used. This happens even though the visual content of the layer has clearly changed.
Since these layers are not referenced through effect parameters, After Effects doesn't automatically detect the dependency.
Is there a reliable way to detect changes in such unreferenced layers in order to manually invalidate the cache? Or is there a better or more robust alternative approach to ensure the cached results remain accurate?
