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 sdk / reference

    Scheduled Pinned Locked Moved SDK Help
    8 Posts 0 Posters 665 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

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

      On 19/05/2007 at 02:28, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :

      ---------
      I've downloaded and used the COFFE SDK 95 zip and chm for quiet a while now, but I noticed that both are very incomplete. For example both lack in describing the UVWTag, and probably in many other things too. Any other idea how to obtain the needed information?
      thx

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

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

        On 21/05/2007 at 02:23, xxxxxxxx wrote:

        Here is a sample script that prints out the uvw tag. Should be pretty self explainatory.

        var op = doc->GetActiveObject();

        if(!op) return;

        if(getclass(op)!=PolygonObject) return;

        var myuvw = op->GetFirstTag();

        while(myuvw)
        {
             if(myuvw->GetType()==Tuvw)
             {
                  //uvw tags are of VariableTag type
                  var pcnt = myuvw->GetDataCount();
                  var data = myuvw->GetData();
                  var n;
                  for(n=0; n<pcnt; n++)
                  {
                       println(data[n*4]); //uvw for point A of the polygon
                       println(data[n*4+1]);//uvw for point B of the polygon
                       println(data[n*4+2]);//uvw for point C of the polygon
                       println(data[n*4+3]);//uvw for point D of the polygon; the same as C for triangles
                  }
                  break;
             }
             myuvw=myuvw->GetNext();
        }

        cheers,
        Matthias

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

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

          On 21/05/2007 at 03:39, xxxxxxxx wrote:

          yeah, thanks. That solves this problem. But the need for a more comprehensive reference still remains (but as I read some older posts in this forum, that seems to be a knwon problem of the official sdk...)

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

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

            On 21/05/2007 at 04:01, xxxxxxxx wrote:

            well, actually i got all the needed information for the above script fronm the docu. a sdk docu will be never "complete". if you feel some areas are lacking than please do point them out and i will try to include it in the docu.

            cheers,
            Matthias

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

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

              On 21/05/2007 at 07:04, xxxxxxxx wrote:

              I was just confused that there is no entry at all for "UVWTag" (and I think I found this as a Class-Name in some other export script)... but well, it now seems just like a lack of unterstanding the c4d structures *g*
              sry, my fault.... *solved*^^

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

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

                On 21/05/2007 at 07:12, xxxxxxxx wrote:

                No need to be sorry, you probably saw some C++ code because there is an UVWTag in the C++ SDK.

                cheers,
                Matthias

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

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

                  On 22/05/2007 at 06:31, xxxxxxxx wrote:

                  actually, the script above doesnt work. I get an error while C4D starts:
                  (118) Variable or function expected
                  the specified line is
                  if(myuvw->GetType()==Tuvw)
                  seems like Tuvw is not defined (the indicated row is just behind the Tuvw-token). Im using C4D 9.012

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

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

                    On 22/05/2007 at 06:40, xxxxxxxx wrote:

                    Then use TAG_UVW instead of Tuvw. Btw. you can look up all the symbols in the coffeesymbols.h file. Also it would be a good idea to update to 9.102, it is a free update.

                    cheers,
                    Matthias

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