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

    export script

    General Discussion
    0
    9
    1.3k
    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 04/05/2007 at 07:02, xxxxxxxx wrote:

      hi,
      I whould like to create a export script from C4D into a self created format for use in a game. I have googled for long time, but I cannot find a place to begin. Maybe some really really basic code to start from whould be great.
      thanks
      Krox

      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 04/05/2007 at 08:04, xxxxxxxx wrote:

        C4D uses COFFEE as its script language and it does support import/export scripts (FilterPlugin).

        Go to the download page[URL-REMOVED] and grab either the COFFEE_SDK_95.zip (HTML) or COFFEE_SDK_95.chm (Windows help file). There are examples to help you get started.


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

        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 05/05/2007 at 03:59, xxxxxxxx wrote:

          yeah thx a lot... its working 🙂

          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 06/05/2007 at 08:17, xxxxxxxx wrote:

            well... now I've got a menu entry like "file -> export -> MyExport", and I even figured out, how to write into the resulting file, but i failed to find out, how to get information about the scene i want to save. I'm using
            class MyFilter: FilterPlugin
            {
               public:
               Save(doc,fname,obj,mat,env,dialog);
               // many other things go here
            }
            I think, the information i need is somewhere inside the MyFilter::Save function parameters, but the filterPlugin class isnt documented in the SDK...

            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 06/05/2007 at 09:27, xxxxxxxx wrote:

              The 'scene' is the 'doc' argument. A BaseDocument represents the scene (objects, tags, materials, shaders, etc.).

              So, say you want to save objects from the scene. You take 'doc' and start traversing the object tree:

              var op = doc->GetFirstObject();  
              while (op)  
              {  
                   // Do your thing here (call a function to export data for instance)  
                
                   // Traverse object tree (scene graph)  
                   if (op->GetDown())  
                   {  
                        op = op->GetDown();  
                   }  
                   else  
                   {  
                        while (!op->GetNext())  
                        {  
                             op = op->GetUp();  
                        }  
                        if (op) op = op->GetNext();  
                   }  
              }  
              

              You'll find more useful information in the SDK Help forum.

              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 06/05/2007 at 14:24, xxxxxxxx wrote:

                thx again 🙂

                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 17/05/2007 at 06:06, xxxxxxxx wrote:

                  hm... me again 🙂 :
                  I've been working with "COFFEE SDK 95.zip" for a while now, but it seems very incomplete for use as a reference, so I tried out the "COFFEE SDK 95.chm", but that file is corrupt (and even looks too small, 683 KB). Any idea where to get a working one, oder what other reference to use?

                  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 17/05/2007 at 06:13, xxxxxxxx wrote:

                    I just downloaded the file and it is working without problems. It is a compiled HTML file (CHM) thats why it is so small. If you are a Mac user you need a special CHM reader application to read CHM files.

                    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 17/05/2007 at 06:54, xxxxxxxx wrote:

                      accuratly speaking, I am a Linux user. C4D runs on windows which runs inside a virtual machine... but neither there nor on a "real" windows it could be displayed correctly. Anyway, I solved the probelm by installing a chm reader on linux, and it works 🙂
                      weird thing... but nevermind anymore *g*, thx

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