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.

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

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 390 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 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 Offline
        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 Offline
          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