this
pointConstraint -offset 0 0 0 -weight 1 $leaves[5] $new;
would be nice if I just want to take the 5th element out of the array each time I suppose, but when trying to cycle through the complete array (I don´t know ho0w to) I get this error
// Error: pointConstraint -offset 0 0 0 -weight 1 ($Leaves[])($new); //
// Error: Line 15.50: Syntax error //
cause if I put a number into the [] it only constrains 1 element and then stops. it´s allmost the same when just using ($Leaves)($new), where it duplicates correctly but places all dupes onto one single object.
I too thought about using "stem" for the selected items. but I have some modeled branches with lots of different leaves with different shaders which I dont want to screw up each time. and as I have to repeat this procedure very often it would be nice to script it over the ls-sl command which is so very handy in this case.
I know what you mean Alan by learning with each project. but I am deeply intuitiv thinking. that´s why modeling fits me perfect. but as soon as code comes into place I start over and over again. code doesn´t like me. the above lines took me about 3 hours to get it "kind of" working.
thx for your help
everything starts and ends in the right place at the right time.