Hello,
I have a plugin object that contain an another plugin object, and I want to clone the cache of the child object into the parent object. the problem is when I make changes in the child object parameters the change is not updated immediately in the parent object until I select it.
So , I thought to add a Python Tag to the parent object to trigger the Cache recalculation from the Python Tag.
def GetVirtualObjects(self, op, hh):
child = op.GetDown()
if not op.GetDown() :
return c4d.BaseObject(c4d.Onull)
child_cache = child.GetCache()
dirty = op.CheckCache(hh) or op.IsDirty(c4d.DIRTY_DATA)
if not dirty :
return op.GetCache(hh)
...
Thanks.