Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
I wrote this script to help me when Patch Modeling. (Yes, there are still some freaks out there who prefer a NURBS to Polygon workflow.) Basically, I've always wanted a tool that would allow me to Add or Subtract a given number of spans to a surface, or, Multiply or Divide existing spans by a given number. This simple tool does just that!
Pseudo-code example with a curve:
rebuildCurve -spans ($currentNumberOfSpans / 2);
Useful when you want to quickly rebuild an entire patch model up or down. For example, twice as many spans for each surface in U and V. Or half as many.
Works for both NURBS curves and surfaces.
Copy all the mel scripts in this zip into your scripts directory and restart Maya.
Execute 'oaSpansMaster' to bring up the UI.
Select some curves, set the options, and press 'Rebuild Curves'.
Or, select some NURBS surfaces, set the options, and press 'Rebuild Surfaces'.
v1.0 (November 15, 2005) o Original Release
IF YOU ENJOY THIS MEL SCRIPT, PLEASE RATE IT. I WOULD APPRECIATE IT. THANK YOU!