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])
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.0
I'm using this way to do it and it's not the right way.
</code>("Z_Rotation * (" + ((1.0 / PartB.count )* i) as string + ")")</pre><br></div><div><br><img alt="" src="https://us.v-cdn.net/5021068/uploads/editor/yf/z282uv9oyjm4.gif" title="Image: https://us.v-cdn.net/5021068/uploads/editor/yf/z282uv9oyjm4.gif"><br><div><pre class="CodeBlock"><code>master = $master
slave = $slave???
select slave
arrayOne = selection as array
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])
for i=1 to PartB.count do
(
PartB[i] = paramWire.connect master[#transform][#rotation][#z_rotation] PartB[i][#transform][#rotation][#z_rotation] ("Z_Rotation * (" + ((1.0 / PartB.count )* i) as string + ")")
)
Replies
So in your example it would probably look something like this: EDIT, see below!
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