survento
08-20-2007, 10:55 PM
I have figured out how to build 4 arrays and I want to create new arrays given the info inside the arrays.
Arrays to Build From
narr = #(bob, jud, bill, mat) -- Names are random and the total changes.
farr = #(12f, 120f, 85f, 62f) -- Total number of frames active per object above, listed in same order
sarr = #(14f, 18f, 94f, 122f) -- First keyed frame (start of motion)
earr = #(26f, 138f, 179f, 184f) -- Last keyed frame (end of motion)
New Arrays How?
I want to create one new array for each of the indexed values in "narr" using the values in "narr" to name the new array. This is tricky because the values in "narr" will be unknowns.
Examples:
bob = #(narr[1], farr[1], sarr[1], earr[1]) or bob = #(bob, 12f, 14f, 26f)
jud = #(narr[2], farr[2], sarr[2], earr[2]) or jud = #(jud, 120f, 18f, 138f)
So how do I create new arrays with names based off of the first array when the values inside that array will always be changing?
Arrays to Build From
narr = #(bob, jud, bill, mat) -- Names are random and the total changes.
farr = #(12f, 120f, 85f, 62f) -- Total number of frames active per object above, listed in same order
sarr = #(14f, 18f, 94f, 122f) -- First keyed frame (start of motion)
earr = #(26f, 138f, 179f, 184f) -- Last keyed frame (end of motion)
New Arrays How?
I want to create one new array for each of the indexed values in "narr" using the values in "narr" to name the new array. This is tricky because the values in "narr" will be unknowns.
Examples:
bob = #(narr[1], farr[1], sarr[1], earr[1]) or bob = #(bob, 12f, 14f, 26f)
jud = #(narr[2], farr[2], sarr[2], earr[2]) or jud = #(jud, 120f, 18f, 138f)
So how do I create new arrays with names based off of the first array when the values inside that array will always be changing?
