You mean like this? arrayOne = #(1,5,7,23,9,5,65)PartA = #()partB = #()for i=1 to arrayOne.count/2 do (append PartA arrayOne[i])for i=(arrayOne.count/2 + 1) to arrayOne.count do (append PartB arrayOne[i])
This part of the code works perfectly PartB = #(1,2,3,4,5)for i=1 to PartB.count do ( print (PartB[PartB.count - i + 1])) When connecting the wire parameter, an error occurs and it cannot connect to the elements. The sample 3dsmax scene to test. https://drive.google.com/open?id=1UUl68bH_6dXd2iR4hxp3ik1KYmc-73wZ
You can count backwards by subtracting the current loop number from the highest array index: PartB = #(1,2,3,4,5)for i=1 to PartB.count do ( print (PartB[PartB.count - i + 1])) So in your example it would probably look something like this: EDIT, see below!
Whoops! My mistake, it should look like this: PartB[i] = paramWire.connect master[#transform][#rotation][#z_rotation] PartB[i][#transform][#rotation][#z_rotation] ("Z_Rotation * (" + ((1.0 / PartB.count) * (PartB.count - i + 1)) as string + ")")
A question that is related to the previous one.Now that I have 2 object arrays the second array starts connecting the values but from 0.0 to 1.0 and I would need the opposite starting with a value of 1.0 and ending with a value of 0.0I'm using this way to do it and it's not the right way.</code>("Z_Rotation * (" + ((1.0 /…