rsodre last edited by
When a generator has dependencies that must be previously cached, we use the
What if a modifier also has dependencies?
Can it add more dependencies to the parent generator?
What's the best method to guarantee that a dependency is cached?
m_magalhaes last edited by
just to be sure, as you can see on this page, the generator must check the dirtyness of a child to know if it need to rebuild its own cache.
If you have multiple object you can use a
dependence list.For example,
GetAndCheckHierarchyCloneis using it internally.
Technically, you could use AddDependence from everywhere, but it will/could be erase right after.
If your modifier must be sure that another object is updated, you have to do it by yourself using IsDirty/https://developers.maxon.net/docs/Cinema4DCPPSDK/html/class_c4_d_atom.html#a5ac82ad49ad02242398aa01ef731f524/GetHDirty
Inside a generator you can use CheckCache.
You probably have an idea/example where it could be necessary, could you tell us more ?