Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/01/2012 at 06:15, xxxxxxxx wrote:
User Information: Cinema 4D Version: 11.5 Platform: Mac OSX ; Language(s) : C.O.F.F.E.E ;
--------- Hi,
In the Script Manager Window, is is possible to write a small script that contains functions? This does not work:
var a = 8; a = a + 2; output_var(a); output_var( n ) { println(n); }
On 03/01/2012 at 06:46, xxxxxxxx wrote:
Yes, but you need to do it like this:
output_var( n ) { println(n); } main(doc, op) { var a = 8; a = a + 2; output_var(a); }
My understanding is that the entry point for the script is the main() function, so that must be included. And you don't need your forward declaration of the function.
On 03/01/2012 at 06:48, xxxxxxxx wrote:
Ok, thank you very much. I will try this out.