From 9ec9bb2354dc91268aac6094374aa504e076ad38 Mon Sep 17 00:00:00 2001 From: meta-androcto Date: Sun, 23 Jun 2019 20:40:37 +1000 Subject: animation_add_corrective_shape_key: return to release: T65258 38475602b2ef --- animation_add_corrective_shape_key.py | 530 ++++++++++++++++++++++++++++++++++ 1 file changed, 530 insertions(+) create mode 100644 animation_add_corrective_shape_key.py (limited to 'animation_add_corrective_shape_key.py') diff --git a/animation_add_corrective_shape_key.py b/animation_add_corrective_shape_key.py new file mode 100644 index 00000000..c0824168 --- /dev/null +++ b/animation_add_corrective_shape_key.py @@ -0,0 +1,530 @@ +# ##### BEGIN GPL LICENSE BLOCK ##### +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# ##### END GPL LICENSE BLOCK ##### + +# + +bl_info = { + "name": "Corrective Shape Keys", + "author": "Ivo Grigull (loolarge), Tal Trachtman", "Tokikake" + "version": (1, 1, 0), + "blender": (2, 80, 0), + "location": "Object Data > Shape Keys (Search: corrective) ", + "description": "Creates a corrective shape key for the current pose", + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/" + "Scripts/Animation/Corrective_Shape_Key", + "category": "Animation", +} + +""" +This script transfer the shape from an object (base mesh without +modifiers) to another object with modifiers (i.e. posed Armature). +Only two objects must be selected. +The first selected object will be added to the second selected +object as a new shape key. + +- Original 2.4x script by Brecht +- Unpose-function reused from a script by Tal Trachtman in 2007 + http://www.apexbow.com/randd.html +- Converted to Blender 2.5 by Ivo Grigull +- Converted to Blender 2.8 by Tokikake +("fast" option was removed, add new "delta" option +which count currently used shape key values of armature mesh when transfer) + +Limitations and new delta option for 2.8 +- Target mesh may not have any transformation at object level, + it will be set to zero. + +- new "delta" option usage, when you hope to make new shape-key with keep currently visible other shape keys value. + it can generate new shape key, with value as 1.00. then deform target shape as soruce shape with keep other shape key values relative. + +- If overwrite shape key,