Posativ
12-27-2007, 02:47 PM
Hi,
i have a little problem. I don't know to "connect" two different loops in one.
For Example, one loop goes through all objects and the other counts from 0 to 10, but the second loop is used in the first command.
Here my little WiP-Code for adding a path constraint with different percent-values to my selected objects:
(
--Variables
pc = path_Constraint()
path1 = $MySpline
dist = 1.562
-- Script
for i in selection do and for o in 0 to 10 do -- Don't know, how to write this line
(
i.position.controller = pc
i.position.controller.path = path1
temp = dist*o
i.position.controller.percent = temp
)
)
i have a little problem. I don't know to "connect" two different loops in one.
For Example, one loop goes through all objects and the other counts from 0 to 10, but the second loop is used in the first command.
Here my little WiP-Code for adding a path constraint with different percent-values to my selected objects:
(
--Variables
pc = path_Constraint()
path1 = $MySpline
dist = 1.562
-- Script
for i in selection do and for o in 0 to 10 do -- Don't know, how to write this line
(
i.position.controller = pc
i.position.controller.path = path1
temp = dist*o
i.position.controller.percent = temp
)
)
