UVAligner Tool

- Adds a new Avatar Toolkit panel location for UV tools
- adds Align UV Edges to target
 - Allows for aligning uv vertices in a line on one object to another's uvs pixel perfect. This is useful for making one model copy another model's UV's with some user work
- Added translation keys for tool
This commit is contained in:
989onan
2024-09-09 21:18:56 -04:00
parent ce6cedd776
commit fba59faa50
6 changed files with 343 additions and 6 deletions
+19
View File
@@ -0,0 +1,19 @@
import bpy
from ..core.register import register_wrap
from ..functions.translations import t
from .panel import draw_title
@register_wrap
class UVTools_PT_MainPanel(bpy.types.Panel):
bl_label = t("AvatarToolkit.label")
bl_idname = "OBJECT_PT_avatar_toolkit_uv"
bl_space_type = 'IMAGE_EDITOR'
bl_region_type = 'UI'
bl_category = "Avatar Toolkit"
def draw(self: bpy.types.Panel, context: bpy.types.Context):
layout = self.layout
sima = context.space_data
if sima.show_uvedit:
draw_title(self)