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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    C.o.f.f.e.e Script To Access Excel File To Get Set

    SDK Help
    0
    3
    390
    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

      On 20/08/2013 at 18:42, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   Demo 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;   XPRESSO  ;

      ---------
      I have the Excel file which contains all style guide that controls lighting, material, cameras and additional object layers. I need to write COFFEE script which need to get the value from Excel. I'm actually new in for Cinema4d and COFFEE script, appreciate if someone could advice on this. Any advice/references is highly appreciated.

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

        On 21/08/2013 at 00:54, xxxxxxxx wrote:

        You won't be able to read a native Excel file, I think. What you could do is export the Excel data as a .CSV file, that's just a text file so much easier to manipulate.

        Then you'll need to load and parse that file. A very long time ago I wrote a brief note on how to read a .CSV file, and it's still on my site at http://www.microbion.co.uk/developers/csv.htm. It's written in VB but should be translatable into COFFEE (which is sort of like Javascript). But you're on your own with how to open the file and read it in using COFFEE.

        Once you have done that, then you can think about how to use the values from the file in a C4D scene, assuming that's what you are hoping to do.

        Good luck!

        Steve

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

          On 21/08/2013 at 02:56, xxxxxxxx wrote:

          For this level of plugin, you would be served much better using the Python interface.  COFFEE is just not that expansive and powerful for the things that you intend to accomplish.

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