Gokhan
05-07-2009, 08:07 PM
I am new to both C and maxscripting, and stuck with a probably simple question;
I have an array such as a=#(3,2,1) and its values depends on some conditions,
I need to keep the original form of the array and change it in a "for loop" at each iteration depending on sub-conditions.
I equalized "a" to another variablename "b";
b=a;
and i changed b in the loop, but I saw at each iteration also a changes, so in the next iteration the array does not turn into its original form.
I thought that this culd be due to local-global variables and changed a as global and b as local and get the value of a with " b=globalVars.get #a" but the same thing happened.
How could I avoid this?
Thanks.
I have an array such as a=#(3,2,1) and its values depends on some conditions,
I need to keep the original form of the array and change it in a "for loop" at each iteration depending on sub-conditions.
I equalized "a" to another variablename "b";
b=a;
and i changed b in the loop, but I saw at each iteration also a changes, so in the next iteration the array does not turn into its original form.
I thought that this culd be due to local-global variables and changed a as global and b as local and get the value of a with " b=globalVars.get #a" but the same thing happened.
How could I avoid this?
Thanks.
