I am wanting to write an expression to assign the value of a custom attribute to other objects in my scene.
For example, I have a scene with 4 cubes named pCube1 to pCube4, and I have an object named "Control" with a custom attribute named "Range." I would like to use a loop to iteratively assign the value of Control.Range to the translateY of each cube.
I realize this script will not work, but this is the basic idea:
for($i=1; $i<5; $i++)
pCube$i.translateY = Control.Range;
How should the be scripted?
Thanks in advance.