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

    Python text from Excel

    Scheduled Pinned Locked Moved PYTHON Development
    6 Posts 0 Posters 432 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 11/03/2014 at 20:23, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R12 
      Platform:    Mac  ;  Mac OSX  ; 
      Language(s) :       PYTHON  ;

      ---------
      Hi,

      I'm trying to read some data from excel and use it in the Cinema 4D. How to extract information from excel using python? Ant advice and any reference links are highly appreciated.
      Thanks.

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

        On 12/03/2014 at 03:37, xxxxxxxx wrote:

        I've moved your post to the Python Development section.

        This question has not really something to do with the C4D Python API. The question is not uncommon
        though, have you tried to hit google?

        Also, StackOverflow is a good place to go for questions regarding Python programming that is not
        necessarily bound to the C4D Python API.

        Best,
        -Niklas

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

          On 13/03/2014 at 09:12, xxxxxxxx wrote:

          I can recommend the packages from:
          http://www.python-excel.org/

          I tested xlrd and xlwt in Cinema4D, both work fine!

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

            On 20/03/2014 at 17:46, xxxxxxxx wrote:

            Originally posted by xxxxxxxx

            I can recommend the packages from:
            http://www.python-excel.org/

            I tested xlrd and xlwt in Cinema4D, both work fine!

            Where do I need to save/import the packages in Mac? Can you help me to get the path?

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

              On 21/03/2014 at 01:59, xxxxxxxx wrote:

              You have to install the python packages into the Python Library Folder of Cinema4D. If you select the Preferences Menu in Cinema4D there is a Button called "Open Preferences Folder..." this will lead to a folder called CINEMA 4D R<release number>_<some hex code>
              Inside this folder library/python/packages/osx/ is the folder where you have to install the xlrd and xlwt packages.
              If this is successful you should be able to access Excel files...

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

                On 25/03/2014 at 23:27, xxxxxxxx wrote:

                Originally posted by xxxxxxxx

                You have to install the python packages into the Python Library Folder of Cinema4D. If you select the Preferences Menu in Cinema4D there is a Button called "Open Preferences Folder..." this will lead to a folder called CINEMA 4D R_
                Inside this folder library/python/packages/osx/ is the folder where you have to install the xlrd and xlwt packages.
                If this is successful you should be able to access Excel files...

                Thanks. It solve the issue.

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