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

    Extracting Metadata [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 357 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

      On 09/12/2014 at 21:07, xxxxxxxx wrote:

      Hi,

      Are there metadata linked to a cinema4d file? 
      How can we extract them in a txt file or in XML or in any other format so that they can be used further?

      Thanks
      Nishant

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

        On 10/12/2014 at 02:37, xxxxxxxx wrote:

        Hello,

        to get information like the author, copyright or creation date you can access the document's data via GetDocumentData()[URL-REMOVED].

          
          data =  doc.GetDocumentData(c4d.DOCUMENTSETTINGS_DOCUMENT)  
            
          print data[c4d.DOCUMENT_INFO_AUTHOR]  
          print data[c4d.DOCUMENT_INFO_PRGCREATOR_NAME]  
        

        Then you can write this information to a file like you want. If you want to access this data from another application you have to use the C++ Melange library[URL-REMOVED].

        Best wishes,
        Sebastian


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

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

          On 10/12/2014 at 03:26, xxxxxxxx wrote:

          Thanks. It was very helpful.

          Nishant

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