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

    Batch import?

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 498 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 03/05/2010 at 06:41, xxxxxxxx wrote:

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

      ---------
      Howdy,

      Is it possible to do batch file format imports without having to write your own import filter?

      I tried the MergeDocument() function but it doesn't work, and there doesn't seem to be any file format flags available for it like the SaveDocument() function.

      Adios,
      Cactus Dan

      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 03/05/2010 at 06:45, xxxxxxxx wrote:

        Howdy,

        OK, nevermind. It seems the flags that are listed for the SaveDocument() function also work for the MergeDocument() function. But it doesn't say so in the SDK documentation.

        Adios,
        Cactus Dan

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

          Ehm, both LoadDocument() and MergeDocument() and all of the flags are documented in the SDK in the baseDocument class?

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

            Howdy,

            Yes, I have it working now.

            But, it doesn't say specifically in the R10 SDK documentation that you can use the "FORMAT_Constants" with LoadDocument() and MergeDocument(). It only lists the flags:
            SCENEFILTER_OBJECTS
            SCENEFILTER_MATERIALS
            SCENEFILTER_DIALOGSALLOWED
            SCENEFILTER_PROGRESSALLOWED
            SCENEFILTER_MERGESCENE

            ... and it is left up to the reader to assume that the "FORMAT_Constants" flags can also be used. Assuming is something that I'm not very good at doing.

            Adios,
            Cactus Dan

            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 10/05/2010 at 02:00, xxxxxxxx wrote:

              It doesn't hurt to take a look at newer SDK versions, even if you're developing with R10.
              Often the documentation is simply more complete for features that were introduced earlier.

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

                Howdy,

                Thanks, that's good advice.

                Although, in this particular case, the R11.0 and R11.5 SDK documentation for MergeDocument() are identical to the R10 SDK documentation:

                You can see that it still does not specifically state that the "FORMAT_Constants" can also be used in the "loadflags" parameter.

                And yes, in all three of the SDK versions documentation, the "FORMAT_Constants" are mentioned under SaveDocument() to be used with its "format" parameter, and not its "saveflags" parameter, which in my way of thinking, the "saveflags" parameter associates with the "loadflags" parameter in the MergeDocument() function:

                But no matter, I have it figured out now, and if you look at my 2 original posts, it only took 4 minutes after the first post for me to try using the "FORMAT_Constants" in MergeDocument(), which was somewhat of a lucky guess. Had I not given that a try, I might still be waiting for someone to point me in the right direction.

                Adios,
                Cactus Dan

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