On 23/10/2017 at 22:14, xxxxxxxx wrote:
Hi Pim, thanks for writing us.
From a brief test I can't reproduce the issue you mentioned since the code below properly regenerates "new" geometry every time render/editor visibility is changed or the object is turned on/off.
def GetVirtualObjects(self, op, hh) :
if op is None or hh is None:
return None
child = op.GetDown()
if not child:
return None
childDirty = child.IsDirty(c4d.DIRTY_MATRIX | c4d.DIRTY_DATA | c4d.DIRTY_CACHE)
child.Touch()
cache = op.GetCache()
if not childDirty and cache is not None:
print "cache"
return cache
else:
print "regenerated"
sphere = c4d.BaseObject(c4d.Osphere)
sphere.SetMl(child.GetMl())
return sphere
Maybe I didn't properly get your point?
Best, Riccardo