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
    The Maxon SDK Team is currently short staffed due to the winter holidays. No forum support is being provided between 15/12/2025 and 5/1/2026. For details see Maxon SDK 2025 Winter Holidays.

    Merging files

    Scheduled Pinned Locked Moved PYTHON Development
    1 Posts 0 Posters 557 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 14/02/2011 at 10:37, xxxxxxxx wrote:

      Hi,
      I'm trying to learn how to merge another c4d file into the scene.
      Here's what I have so far:

        
        
      import c4d, os  
      from c4d import*  
        
      def main() :  
        doc = documents.GetActiveDocument()  
        path = os.path.join("/Users", "user", "Desktop", "test.c4d")   
        merge = documents.MergeDocument(doc, path, 0)  
        c4d.EventAdd()  
        
      if __name__=='__main__':  
        main()  
      

      I think I have the target file loaded into memory at this point. But now I don't know how to insert it into the scene(document).

      -ScottA

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