Python text from Excel



  • 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.



  • 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



  • 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!



  • 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?



  • 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...



  • 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.


Log in to reply