THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/05/2003 at 09:04, xxxxxxxx wrote:
Now you had to know this was coming.... :)
Im not very familiar with C++. I wrote a plugin in COFFEE and am trying to 'port' it to C++. Can you give me a small example that will write a given string to a text file. Here is a sample of what I did in COFFEE:
//RIB Header
file->WriteString("#RIB Export from Cinema 4D\n");
//Frame Begin
file->WriteString("FrameBegin 1\n");
//Image Options
file->WriteString("#Image options\n");
file->WriteString("Display \"test.tif\" \"file\" \"rgb\"\n");
file->WriteString("Display \"+test.tif\" \"framebuffer\" \"rgb\"\n");
file->WriteString("Format 640 480 1\n");
file->WriteString("Exposure 1.0 1.0\n");
file->WriteString("Quantize \"rgb\" 255 0 255 0.5\n");
file->WriteString("PixelSamples 2 2\n");
file->WriteString("PixelFilter \"gaussian\" 2 2\n");
//Camera Options
file->WriteString("#Camera options\n");
file->WriteString("Projection \"perspective\" \"fov\" [53.13]\n");
Most of the time I am reading data from the objects in the scene to write to a RIB file, but these are just static values.
Matt