Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    A strange error

    Cinema 4D SDK
    2
    3
    526
    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.
    • A
      adlarch
      last edited by

      Hello, i have this unexpeced errors while trying to build a ObjectData plugin

      'NewObjClear': identifier not found

      in

      class SubdivObject : public ObjectData
      {
      public:
      	virtual Bool Init(GeListNode* node);
      
      	virtual BaseObject* GetVirtualObjects(BaseObject* op, HierarchyHelp* hh);
      	virtual Bool Message(GeListNode* node, Int32 type, void* t_data);
      
      	static NodeData* Alloc() { return NewObjClear(SubdivObject); }
      
      
      };
      

      any clues as to why this is happening?

      1 Reply Last reply Reply Quote 0
      • S
        s_bach
        last edited by

        Hello,

        please use tags and the Q&A system when posting questions.

        What version of Cinema 4D and the SDK are you using?

        You can enable utility functions like NewObjClear() by enabling this setting in your projectdefinition.txt file

        C4D=true
        

        and re-creating the project files. See Project Tool.

        best wishes,
        Sebastian

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • A
          adlarch
          last edited by

          Ah, ok. Somehow missed that line. I thought defining the legacy framework in the api list was sufficient. Cheers!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post