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 04/06/2008 at 18:38, xxxxxxxx wrote:
User Information: Cinema 4D Version: 10.5 Platform: Language(s) : C.O.F.F.E.E ;
---------
Hi and sorry for this extremely simple question,but I can't find anything in the SDK:
How is an array of vectors declared? I want to declare something to be accessed as
someData _.x
I've read the info about arrays and vectors, but how is this made using coffee? Thanks for your time!
On 04/06/2008 at 20:02, xxxxxxxx wrote:
You would allocate the vector array like this (this is explained in the doc Index as [array]) :
var varray = new(array,16);
Remember that COFFEE is typeless.
To access array elements and then the Vector class elements, it would be thus:
varray[0].x
On 04/06/2008 at 20:12, xxxxxxxx wrote:
Thanks a lot. I thought that new(array,n) would just create a "simple" array with n elements but no vector implicitly.
Thanks for your time!