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 25/09/2011 at 01:08, xxxxxxxx wrote:
User Information: Cinema 4D Version: 11.5 Platform: Windows ; Language(s) : C.O.F.F.E.E ;
--------- I try to use array syntax from the documentation but its not working, Can you guys help me?
var TXT_Cur = new(array,3);
Error: syntax error
On 25/09/2011 at 02:31, xxxxxxxx wrote:
works fine here on R12.
var arr = new(array, 3); println(arr);
On 27/09/2011 at 06:15, xxxxxxxx wrote:
I can't confirm. It's working fine here.
cheers, Matthias
On 28/09/2011 at 03:01, xxxxxxxx wrote:
I was trying to declare an array as a global variable, I guess its not passable .
Is there any other form for array declaration (LIKE: var arr = {"1","23","456"};) ?
Thanks
On 28/09/2011 at 05:22, xxxxxxxx wrote:
AFAIK not. And you are right, you cannot initialize an array globally. Use this instead:
var arr;
int main(doc, op) { if (!arr) { arr = new(array, 3); arr[0] = "MyData 0"; arr[1] = 32; arr[2] = doc->GetActiveObject(); } // ... }