Hello everyone. I model a lot of shapes with wide flowing curved surfaces. I already wrote a script to convert my selected poly edge to a curve and automatically rebuild it with a specified number of spans. I do this so that I can have a nice smooth guide to conform my verts to. The problem is that I have to do this…
I'm not sure what you mean by "number of lines", can you clarify? I noticed a script called "djRivet.mel" that has some similar features that you want to do. Might want to check that out for examples. This script: string $verts[] = `ls -sl`; print $verts; Returns: "pCube1.vtx[0:7]". Adding -fl to the ls command will…
I`m looking for something like this as well. Max has some great scripts, but all the ones that I`ve found in maya are just not as flexible / fast / intuitive. Let me know if you find anything...
That worked pretty well. I can see how the script works now that it's written in front of me. The only thing I don't get is why there is a # sign at the end of vertCluster$ and a ` after the [$i]. What do those do?
Have you tried the Wire tool? It doesn't snap 1:1 like you're asking, but it does have some other paramaters to mess with. For scripting your own, you could try the closest point on curve function, and create clusters for your affected vertices. Then constrain the clusters to the point on curve node, I'm not sure how to go…
The # is part of the naming creation syntax, I can't remember the doc page for that. It ensures that "vertCluster" will always have a number in the name. Without it, the first would be vertCluster, followed by vertCluster1, vertCluster2. This would be bad if another part of the script expects to pick one by number.…
I plan on writing a script that does a few things. * grab a list of all the verticies I have selected with ls -sl. * find a way to output the number of lines in that list. * find a way to cycle through something that can output the item in a specified line number. * for each of those create a cluster. * output a list of…