|
4 | 4 |
|
5 | 5 | Author: namakoshiro |
6 | 6 | Created: 2025/1/11 |
7 | | -Version: 1.1.1 |
| 7 | +Version: 1.1.2 |
8 | 8 | Last Updated: 2025/1/14 |
9 | 9 | Blender Version: 2.80 → 4.32 |
10 | 10 |
|
|
19 | 19 | bl_info = { |
20 | 20 | "name": "blender-shapekey-tools", |
21 | 21 | "author": "namakoshiro", |
22 | | - "version": (1, 1, 1), |
| 22 | + "version": (1, 1, 2), |
23 | 23 | "blender": (2, 80, 0), |
24 | 24 | "location": "View3D > Sidebar > Shapekey", |
25 | 25 | "description": "A small tool for one click to split or merge L/R shapekeys, and generate new shapekey below the selected item", |
@@ -235,12 +235,12 @@ def execute(self, context): |
235 | 235 | # Store original index |
236 | 236 | original_index = obj.active_shape_key_index |
237 | 237 |
|
238 | | - # Create left side first (will end up above right side) |
239 | | - self.create_side_shapekey(context, active_key, 'L') |
| 238 | + # Create right side first (will end up below left side) |
| 239 | + self.create_side_shapekey(context, active_key, 'R') |
240 | 240 | context.window_manager.progress_update(40) |
241 | 241 |
|
242 | | - # Then create right side |
243 | | - self.create_side_shapekey(context, active_key, 'R') |
| 242 | + # Then create left side |
| 243 | + self.create_side_shapekey(context, active_key, 'L') |
244 | 244 | context.window_manager.progress_update(80) |
245 | 245 |
|
246 | 246 | # Set the original shapekey value to 0 |
@@ -530,8 +530,9 @@ def create_weighted_side_shapekey(self, context, source_key, side, deformed_indi |
530 | 530 | # Get relative position in X range using deformed position |
531 | 531 | rel_pos = (source_key.data[i].co.x - x_min) / x_range |
532 | 532 |
|
533 | | - # For right side, invert the position |
534 | | - if side == 'R': |
| 533 | + # For right side (.R), use weight directly (weight=1 at negative X) |
| 534 | + # For left side (.L), invert the position (weight=1 at positive X) |
| 535 | + if side == 'L': |
535 | 536 | rel_pos = 1 - rel_pos |
536 | 537 |
|
537 | 538 | # Calculate weight using custom curve |
@@ -684,7 +685,7 @@ def draw(self, context): |
684 | 685 | box = layout.box() |
685 | 686 | col = box.column() |
686 | 687 | col.scale_y = 0.8 |
687 | | - col.label(text="Version: 1.1.1") |
| 688 | + col.label(text="Version: 1.1.2") |
688 | 689 | col.label(text="Last Updated: 2025/1/14") |
689 | 690 | col.label(text="Blender: 2.80 → 4.32") |
690 | 691 |
|
|
0 commit comments