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

    input from file with coffee

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 392 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 15/12/2007 at 17:24, xxxxxxxx wrote:

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

      ---------
      hi everyone
      i'm italian so i say sorry for the language

      i've a problem. can anyone explain to me how to read data from file (txt or dat) with coffee?
      i have a list of coordinates and i wanted to automatically associate these with points of an editable polygon by using coffee.
      just to be clearer, in c++ i can use fstream command...i wanted to do the same thing with coffee

      thanks

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 15/12/2007 at 18:34, xxxxxxxx wrote:

        You'll need to use Filename to reference the file and BaseFile to open and read data from it.

        Be aware that file access is not possible with COFFEE scripts in COFFEE/Expression tags or Xpresso nodes. In order to have file access you will need to be writing a COFFEE plugin - a text script in a file with .cof extension stored in the Cinema 4D Plugins folder.

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 16/12/2007 at 03:37, xxxxxxxx wrote:

          thank you

          and how can i write a plugin?

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 16/12/2007 at 07:52, xxxxxxxx wrote:

            Download the COFFEE SDK documentation. Check the "Plugin Files" and "Plugin Types" sections. There are also examples included. The HTML version is better for having the example files available directly while the CHM (Windows Help) version is better for navigating the documentation.

            <[URL-REMOVED]>


            [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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