On 20/02/2014 at 13:04, xxxxxxxx wrote:
On the following line,
track = c4d.CTrack(obj,id)
I am getting this error: "Standard Error: The plugin 'c4d.CTrack' (id 5350) is missing. Could not allocate instance."
I am sure this is basic and the solution should be obvious, but I can't seem to find anything about it. I am guessing that the error has something to do with my setup, not finding the module, but the code has worked previously without the error and I haven't changed my installation, which is a standard installation. I've tried import commands besides the basic import c4d, but with no effect.
If someone can please point me in the right direction to look, I'd appreciate it.
Here is the complete function calling that line of code.
def CreateKey(obj,id,value,frame) : if not obj.GetDocument() : raise Exception, "object must be in a document" track=obj.FindCTrack(id) #if the track doesn't exists, create it... if not track: track = c4d.CTrack(obj,id) obj.InsertTrackSorted(track) curve=track.GetCurve() key=curve.AddKey(c4d.BaseTime(frame,doc.GetFps())) if type(value)==int or type(value)==float: key["key"].SetValue(curve,value) else: key["key"].SetGeData(curve,value)