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.
This tool adjusts the volume of a scaled object. I use this mostly on the head ctrls of rigs that don't already have a squash and stretch deformation when scaled.
After scaling the object, select the axis you scaled it on and press "Adjust volume" to apply. When adjusting the scale again, you need to press the button again. Note: Since the other scale axis' will be used to make the adjustements, any existing scale values on those axis' will be changed.
Paste the MEL files in your Maya scripts forlder: C:\Users\?User?\Documents\maya\?version?\scripts
and run this MEL line inside Maya: svm_fixStretchRatio_UI();
(you can make a shelf button for that) Or put the files in any location and source them with a button, but don't forget the command: svm_fixStretchRatio_UI(); To remove the tool out of your maya, simply delete the files.
A THANK YOU: I want to thank my friend Kris Borghs for the idea and the initial raw version of the code for this tool.