On 17/05/2016 at 13:19, xxxxxxxx wrote:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C.O.F.F.E.E ; XPRESSO ;
I'm very new to scripting, so I apologize in advance for these stupid questions:
1. The default code inside a COFFEE Tag starts with "main(doc,op)" but in the Xpresso COFFEE node it starts only with "main()". I've figured out that the "doc" part is defined as "var doc = GetActiveDocument();" but how is the "op" defined? Also, am I right in my understanding that the "op" refers to the object to which the COFFEE/Xpresso tag is attached?
2. If I understand it correctly, one can use Functions to speed up a script since the code in the "main" part of the script is reduced by using the Function call. Is my understanding that Functions speed up the processing of the script correct or is it used to keep the script clean and uncluttered?
Thank you very much in advance for your help.