On 31/01/2013 at 14:32, xxxxxxxx wrote:
Hy there,
I created a spline cacher, which is a Python Generator object. It uses the GetContour(..) overwrite to return a spline. The spline gets created by a cache, which is read dependent on the documents time. The document I use is the one given as an argument to the GetContour(..) callback.
Now, this all works fine, except it can't be used in a cloner:
File "AoB-SplineCacher.pyp", line 328, in GetContour
frame = doc.GetTime().GetFrame(doc.GetFps())
ReferenceError: The object 'c4d.documents.BaseDocument' is not alive.
How do I need to handle the document, so the Spline Generator will also work within a cloner?
Thank you,
maxx