THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/03/2005 at 07:46, xxxxxxxx wrote:
Cinema 4D Version: 9.1 Demo
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
Today, I read something about COFFEE as a possibility to write plugins for C4D. So, I decided to learn it. I've made some tutorials. After a while, the first example works. This very simple one:
But when I want to use other examples, I always get COFFEE Errors in the console window.
// Opens the above dialog with an exclamation mark icon
var result = TextDialog("Hello World!", DLG_OKCANCEL + DLG_ICONEXCLAMATION);
// Checks the result
if (result == DLG_R_OK)
TextDialog("You pressed OK!", DLG_OK);
(124) Syntax Error
I have tested a lot of examples, but I always get such errors like "(118) Variable or function expected". What's wrong?
On 25/03/2005 at 06:22, xxxxxxxx wrote:
Did you put the code within a function block? You can't just have it stand-alone in the file. The simplest function block is the "main" you had in the first sample. A more interesting variant is to use MenuPlugin::Execute().