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.
Ever want to select one or multiple curves and just hit a button to make a pipe? And then slide sliders around to edit those curves, and also be able to move the curve CVs and have the pipe move with it? Well, now you can. Pipe away!
1. Save either the script to your documents\maya\*version*\prefs\scripts folder. 2. Start Maya. 3. In your command line or script editor, type the following as MEL and execute:
CREATE Select one or many curves and click this button to make a pipe.
DELETE Deletes your pipes and cleans all the junk.
FINALIZE Deletes the junk and cleanly separates the pipes from the curves.
Remembers your settings, just in case you tend to make the same sized pipes a lot.
Known issues: - if you rotate a curve or edit the cvs enough, the pipe geometry will invert. The fix is to press Delete, then press Create. Should fix it. - if your pipe squishes in at some points, rebuild your curve with more CVs