So I am working on a script which I plan for it to create roads based off of the curve path. So far, I have the duplication path script working, which you can download here . The basic gist is to create an ep curve path and an object. Once the script starts, a window will pop up allowing you to pick which is the curved path and which is the object. Then it is as simple as clicking on the create duplicates button.
However, if anyone can help me to continue, I am really having a problem with getting the attributes of curveIntersect node inputCurve1 and inputCurve2.
string $cIntersect[] = `ls -type curveIntersect`;
for($i = 0; $i < size($cIntersect); $i++) {
string $input1 = `getAttr ($cIntersect[$i] +".inputCurve1")`;
string $input2 = `getAttr ($cIntersect[$i] +".inputCurve2")`;
print($input1);
print($input2);
print("\n\n");
}
however, I get an error stating...
The data is not a numeric or string value, and cannot be displayed.