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.
How to install 1. Put this script in a script folder like here. C:\Users\user\Documents\maya\2018\scripts
2. Run lines below in python tab. import soft_ik_maya_ui_no reload(soft_ik_maya_ui_no) soft_ik_maya_ui_no
Before execute it, there are several requirements. - Joints should be X axis down. (3rd joint doesn't matter) - IkHandle shouldn't have point-constraint or parent-constraint. (Pole vector constraint is OK)
How to use
- Run this script above to display UI. - Set string in a text box. This is going to be prefix for new locaters. - Select a ikHandle and a object that is going to point-constrain the ikHandle. (maybe a curve for controler, maybe a locater for position offset ) - Push the button. - You can find a attribute "Soft IK dist" on the constrain-object you selected. Set value.
How to delete - Delete "xxx_SoftIK_Aim" locater and below. - Delete "Soft_IK_dist" attribute.