Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Plugin missing

    Scheduled Pinned Locked Moved PYTHON Development
    1 Posts 0 Posters 197 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      On 20/02/2014 at 13:04, xxxxxxxx wrote:

      Hi,

      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.

      Thanks

        
        
      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)  
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post