/**
 * Module dependencies.
 */
var c4d = require('c4d');

/**
 * Set the path to the CINEMA 4D application.
 */
//c4d.setApplicationPath('/path/to/cinema/4d');

/**
 * Get the application path.
 */
//console.log('CINEMA 4D app path: '+c4d.getApplicationPath());

/**
 * Render a c4d file and override some parameter.
 */
c4d.render({filepath: 'files/project.c4d',
            frame: '0',
            silent: true,
            report: 'files/'
           },
           function(c) {
             console.log('Time: '+c.time);
             console.log('Code: '+c.code);
});

/**
 * Read a report.json
 */
// c4d.report.read('./files/', function(data) {
//   console.log('time: ');
//   console.log(data.time);
//   console.log('command_options: ');
//   console.log(data.command_options);
//   console.log('cinema4d_stdout: ');
//   console.log(data.cinema4d_stdout);
//   console.log('cinema4d_stderr: ');
//   console.log(data.cinema4d_stderr);
//   console.log('code: ');
//   console.log(data.code);
// });

@@ -1,12 +1,97 @@
+/**%0A * This is a small example to run the CINEMA 4D Render from a Node.js app.%0A */%0A%0A%0A
 /**%0A * Modul
@@ -446,44 +446,20 @@
 4d',
-%0A            frame: '0',%0A           
+ frame: '0',
  sil
@@ -468,28 +468,16 @@
 t: true,
-%0A           
  report:
@@ -489,33 +489,10 @@
 es/'
-%0A           %7D,%0A          
+%7D,
  fun
@@ -502,27 +502,16 @@
 on(c) %7B%0A
-           
   consol
@@ -534,27 +534,16 @@
 .time);%0A
-           
   consol

Update example app