Notifications
Clear all
[Closed] Wire parameters value gradually
Feb 29, 2020 5:09 am
I have the following two questions:
1:Assign a numerical value that is different for each of the objects in a selection or array.
2: The maximum value assigned is given to the object in the middle of the object selection or array.
I show you a picture of what I want to do.
The values are an example, it is not necessary exactly as they are shown. At the ends they should be 0 and at the middle object -1
Pseudo code, is a sample code as far as it goes.
select $Point???_ctrl
MyArray = selection as array
for i = 1 to MyArray.count do
(
rnd = (0.0 + (i + 1) * 0.1)
paramWire.connect $Master.rotation.controller[#X_Rotation] MyArray[i].pos.controller.Position_XYZ.controller[#X_Position] ("X_Rotation*" + rnd as string)
)