stowaway0
10-07-2008, 03:06 PM
When you create most anything in Maya: primitives, nurbs prims, etc, using the "-n" flag - you name both the transform and the Shape. But when I create a curve with something like the following
curve -n ($ctrlName+"_line1") -d 1 -p -1 0 0 -p -0.33 1 0 -k 0 -k 1 ;
Maya does not name the Shape below it. This means I have to follow that with
rename curveShape1 ($ctrlName+"_line1"+$s);
Does anyone know how to name the child Shape during creation? Is there a special flag for this in the curve command? I can't seem to find it in the command reference. Or if you have another stable work-around that would also be great.
The obvious issue with my approach is that if I have any other unnamed curveShapes floating around in my scene the whole script is broken.
Can't tell you how much headache this will save me, so thanks in advance!
curve -n ($ctrlName+"_line1") -d 1 -p -1 0 0 -p -0.33 1 0 -k 0 -k 1 ;
Maya does not name the Shape below it. This means I have to follow that with
rename curveShape1 ($ctrlName+"_line1"+$s);
Does anyone know how to name the child Shape during creation? Is there a special flag for this in the curve command? I can't seem to find it in the command reference. Or if you have another stable work-around that would also be great.
The obvious issue with my approach is that if I have any other unnamed curveShapes floating around in my scene the whole script is broken.
Can't tell you how much headache this will save me, so thanks in advance!
