sauzer
05-03-2006, 01:42 AM
I need to create a script that makes an EP curve with degree 1 that has a cv exactly over every joint of a given joint chain.
So basically I would create a joint chain with, for example, 20 joints, then select the root of the chain, run the script and the result would be a EP curve of degree 1 with 20 cvs over every joint in the chain.
My approach so far is creating a loop; every iteration adds the value of the coordinates of a joint to the string "-p" which is the flag for the "position" of the cv. so at the end of the loop I have a string that looks something like this
"-p 2 3 4 -p 5 6 7 ...."
I finally run the curve command replacing the "-p ..." part of the command with my string.
The error message I get is "No object matches name".
Can anyone tell me if there is a simpler way to do this?
Thanks
So basically I would create a joint chain with, for example, 20 joints, then select the root of the chain, run the script and the result would be a EP curve of degree 1 with 20 cvs over every joint in the chain.
My approach so far is creating a loop; every iteration adds the value of the coordinates of a joint to the string "-p" which is the flag for the "position" of the cv. so at the end of the loop I have a string that looks something like this
"-p 2 3 4 -p 5 6 7 ...."
I finally run the curve command replacing the "-p ..." part of the command with my string.
The error message I get is "No object matches name".
Can anyone tell me if there is a simpler way to do this?
Thanks
