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

    Issues Programatically Exporting Scene To Obj File

    SDK Help
    0
    4
    330
    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

      On 26/10/2015 at 05:30, xxxxxxxx wrote:

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

      ---------
      Hi,

      We have some c++ code that exports the current scene into an OBJ file.
      This has worked fine under R14-16, but with R17 it now fails.

      Initially we thought it was an SDK issue (we build against R14) but after testing this by updating to the R17 API we still have the same problem.

      The call we use is SaveDocument()
      Param 1: Polygonized version of the current scene. GetActiveDocument()- >Polygonize()
      Param 2: Filename structure initialised to the path to export to.
      Param 3: Flags SAVEDOCUMENTFLAGS_AUTOSAVE|SAVEDOCUMENTFLAGS_DONTADDTORECENTLIST
      Param 4 Format flag **FORMAT_OBJEXPORT

      ** I'm not sure why this fails under R17, but it would be good to know if we are doing it incorrectly now (for R17) or if it's just broken.

      The call to SaveDocument simply returns false.

      Thanks for any help in advance!

      Cheers,
      Simon.

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

        On 27/10/2015 at 03:11, xxxxxxxx wrote:

        Hi,

        this is a known problem. With the new OBJ im-/export in R17 the plugin ID for the im-/export slipped through. A bugreport is already posted. Please see this thread OBJ export in R17 for the solution.

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

          On 27/10/2015 at 04:00, xxxxxxxx wrote:

          Thanks for the head up Andreas, and apologies for asking an already asked question - evidently my forum search skills are not good enough yet!

          Cheers,
          Simon.

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

            On 27/10/2015 at 04:01, xxxxxxxx wrote:

            Hi Simon,
            no problem, don't worry.

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