Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Normal Tags in C.O.F.F.E.E.

    SDK Help
    0
    4
    43
    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 27/09/2011 at 12:40, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R9.1 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hi together,
      I'm trying to read the data from a normal tag to export it. But if I try to get the data from the tag an error is thrown.
       
      My current code looks like this:

        
      GetNormalData(normalTag)  
      {  
       var data = normalTag->GetData();//Here the error occures  
       var vectorData = new(array, sizeof(data) / 3);  
       var i;  
       for (i = 0; i < sizeof(vectorData); i++)  
       {  
        vectorData = vnorm(vector(data[i * 3 + 0],  
              data[i * 3 + 1],  
              data[i * 3 + 2]));  
       }  
       return vectorData;  
      }  
      

      The error says: Too few parameters
      But a Normal Tag is a VariableTag and in the documentation it is said that VariableTag has a parameterless GetData() function.
      What am I doing wrong?
       
      Thanks for replies,
      UserXXX

      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 28/09/2011 at 02:04, xxxxxxxx wrote:

        It seems like data access of the normal tag is not supported by COFFEE. I will ask the developers to make sure.

        cheers,
        Matthias

        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 28/09/2011 at 07:13, xxxxxxxx wrote:

          Just got an answer from our developers. Currently data access of the the normal tag is not supported by COFFEE.

          cheers,
          Matthias

          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 28/09/2011 at 08:11, xxxxxxxx wrote:

            Thank you, then I'll have to calculate normals before exporting

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