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
    • Register
    • Login

    Merging files

    PYTHON Development
    0
    1
    327
    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

      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