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

    Export as FBX

    Scheduled Pinned Locked Moved SDK Help
    8 Posts 0 Posters 678 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 22/02/2010 at 03:43, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   11& 11.5 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hi everybody,
      This is an easy question, mostly a yes/no question though if anybody bothers to elaborate well... I am all ears 🙂
      Saving your scene as .C4D with COFFEE is kinda trivial but.. can I save it as FBX with a COFFEE script (without using File/Export )?

      If yes...Any hints, bits or pieces of code that I can look up?

      Thanx a lot.

      Giant-cfr

      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 23/02/2010 at 02:11, xxxxxxxx wrote:

        No, not possible with COFFEE.

        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 24/03/2010 at 07:21, xxxxxxxx wrote:

          How to do this in C++?

          For most formats that would be SaveDocument(), however, FBX and a few others are not in the list of defines... is that for a reason?

          Kabe

          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 24/03/2010 at 08:36, xxxxxxxx wrote:

            It should work by passing the exporter's plugin ID. The missing exporter/importer IDs have been probably just forgotten to add to the list.

            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 24/03/2010 at 14:29, xxxxxxxx wrote:

              I've used this with some success:

                
                 SaveDocument(doc, filename, FALSE, 1017081);   
              

              Caveat: You might run into problems saving UVs. Sometimes the UVs are not written to the FBX file if a material is assigned but there's nothing in the color channel. A workaround is to assign a dummy texture to the material's color channel.

              If anyone knows a better fix for that, I'd love to know it

              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 24/03/2010 at 14:40, xxxxxxxx wrote:

                Matthias, could you search for the missing exporter plugin IDs, please?
                Besides FBX the most obvious omissions are STL and Collada...

                Thanks a million

                Klaus

                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 25/03/2010 at 02:17, xxxxxxxx wrote:

                    
                  FBX 2010.2 - 1023841  
                  FBX 6 - 1017081  
                  COLLADA - 1022316  
                  

                  Here the code to get all exporter IDs.

                    
                  Bool MenuTest::Execute(BaseDocument *doc)  
                  {  
                    AutoAlloc<AtomArray> arr;  
                    if (!arr) return FALSE;  
                    
                    if (!FilterPluginList(arr, C4DPL_SCENESAVER, FALSE)) return FALSE;  
                    
                    LONG cnt = arr->GetCount();  
                    
                    for (LONG i=0; i<cnt; i++)  
                    {  
                        BasePlugin *plugin = NULL;  
                        plugin =  (BasePlugin* )arr->GetIndex(i);  
                    
                        if (plugin)  
                        {  
                            GePrint(plugin->GetName()+" "+LongToString(plugin->GetID()));  
                        }  
                    }  
                    
                    return TRUE;  
                  }  
                  

                  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 25/03/2010 at 02:30, xxxxxxxx wrote:

                    Danke!

                    Kabe ツ

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