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:
Cinema 4D Version: 10
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
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
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.
On 16/12/2007 at 03:37, xxxxxxxx wrote:
and how can i write a plugin?
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.