THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/09/2012 at 17:13, xxxxxxxx wrote:
I have a plugin generating a mesh. That mesh is based on a spline object.
To make it faster, I check for changes and, if there aren't any, I return a cached version with this code:
def GetVirtualObjects(self, op, hierarchyhelp) : path=op[FRM_PATH] dt=False if path is not None: dt=path.IsDirty(c4d.DIRTY_DATA) dirty = op.CheckCache(hierarchyhelp) or op.IsDirty(c4d.DIRTY_DATA) or dt if dirty is False: return op.GetCache(hierarchyhelp) return Calculate_Mesh(op)
The first three lines are to check if the required spline was changed.
But dt is ALWAYS False, even if I change any parameter of the spline.
How can I check for the dirtyness of the spline?