Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Data Dump Python Function

    Cinema 4D SDK
    3
    9
    1.5k
    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.
    • K
      kaisbot
      last edited by Manuel

      Hello,

      Which function should I call to get something like a data dump file? I am trying to get a text file of everything in the scene.

      Thank you,
      Jeremy Kaiser

      1 Reply Last reply Reply Quote 0
      • M
        mp5gosu
        last edited by mp5gosu

        You should go for File->Export->FBX and tick text file.
        But it highly depends on what you understand by "everything in the scene". Tool settings, Multipass-settings? 3rd party plugin settings, etc.?

        1 Reply Last reply Reply Quote 0
        • K
          kaisbot
          last edited by kaisbot

          I can't find the option to tick txt file. Do I have to enable it in preferences?
          // nevermind found it.

          1 Reply Last reply Reply Quote 0
          • M
            mp5gosu
            last edited by

            Here you go:
            51bc86dd-a1d8-4ba0-935d-c257a54a585a-image.png

            1 Reply Last reply Reply Quote 0
            • K
              kaisbot
              last edited by

              It looks really nicely organized but is this the same data structure for c4d documents?

              1 Reply Last reply Reply Quote 0
              • M
                mp5gosu
                last edited by mp5gosu

                No. c4d files are a proprietary format and I assure you, Maxon won't release the internal structure to public. 😉
                Depending on what you achieve, there might be a solution by using the Melange SDK: [URL-REMOVED]

                Can you elaborate a bit more what are you trying to achieve?


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

                1 Reply Last reply Reply Quote 1
                • K
                  kaisbot
                  last edited by

                  Sure. I am creating an automated cad rendering pipeline. I just wanted to see how everything is assigned material and objerct tag wise to see how difficult it would be to parse regular object names and instances + material assignment methods.

                  1 Reply Last reply Reply Quote 0
                  • ManuelM
                    Manuel
                    last edited by

                    Hello and thanks for the question,

                    First, for your next threads, please help us keeping things organised and clean. I know it's not your priority but it really simplify our work here.

                    • Q&A New Functionality.
                    • How to Post Questions especially the tagging part.

                    Regarding your question i'm afraid there's no solution than what @mp5gosu already talked about. (thanks for your post)

                    If you are creating a rendering pipeline i would definitely have a look at the melange SDK if you are not afraid of c++ (and there's absolutely no reason to be afraid). Don't be afraid to ask questions here.
                    There's no equivalent to Melange in python.

                    As i said, other than going through all objects in the scene and collect informations you want to export and finally export it to the format you want (using xml module in python for example) there's no built in solution.

                    Sorry about the bad new ..

                    i've marked this thread as a question so when you considered it as solved, please change the state 🙂

                    Cheers
                    Manuel

                    MAXON SDK Specialist

                    MAXON Registered Developer

                    1 Reply Last reply Reply Quote 0
                    • ManuelM
                      Manuel
                      last edited by

                      hello,

                      if you don't have anything else to add, i'll mark this topic as "solved"

                      Cheers
                      Manuel

                      MAXON SDK Specialist

                      MAXON Registered Developer

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