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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    coffee callback COMPILE

    SDK Help
    0
    3
    304
    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
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 01/09/2003 at 15:08, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.100 
      Platform:   Windows  ; Mac  ;  
      Language(s) :     C++  ;

      ---------
       
      i cant  find a way to read the error messages in my CoffeeEditorCallback function.I need to get the error string and position numbers and put them in a container to pass back .But I cant figure out how to read these 3 values.

          
          
          
          
          GeData mycallback(BaseList2D *obj, const BaseContainer &msg)  
          {  
           GeData res;  
           Atom *node = (Atom* )obj; if (!node) return res;
          
          
          
          
           switch (msg.GetId())  
           {  
            case COFFEEEDITOR_COMPILE:  
             {  
              BaseContainer r;  
              String err_string;  
              LONG err_line,err_pos;
          
          
          
          
          // how can i read the error info and set the data to pass back
          
          
          
          
          // so i can see error messages in the compiler
          
          
          
          
              err_string=?????  
              err_line=??????  
              err_pos=?????  
               
               r.SetLong(COFFEEEDITOR_GETERROR_RES,FALSE);  
               r.SetString(COFFEEEDITOR_GETERROR_STRING,err_string);  
               r.SetLong(COFFEEEDITOR_GETERROR_LINE,err_line);  
               r.SetLong(COFFEEEDITOR_GETERROR_POS,err_pos);  
             res=r;    
             }  
             break;  
           }  
          return res;  
          }
          
          
          
      

      thanks for any help you can offer.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 02/09/2003 at 00:21, xxxxxxxx wrote:

        You need to use GeCoffeeGetLastError after you compile the script, store the result, and off you go 🙂

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 02/09/2003 at 03:42, xxxxxxxx wrote:

          yes your right , I couldnt see the wood for tree`s 🙂

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