From 87487289531df9fb8de2b9cea6034e66094f214d Mon Sep 17 00:00:00 2001 From: pullusb Date: Tue, 6 Feb 2024 17:51:55 +0100 Subject: [PATCH] bigger plane zone in bone mode --- utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils.py b/utils.py index 9aa7022..78e1ffd 100644 --- a/utils.py +++ b/utils.py @@ -177,7 +177,6 @@ def plane_on_bone(bone, arm=None, cam=None, set_rotation=True, mesh=True): ## Use mid bone to better follow movement mat.translation = arm.matrix_world @ ((bone.tail + bone.head) / 2) # Mid bone - mat_scale = Matrix.Scale(10, 4) # maybe move above mesh condition if mesh: # get/create collection @@ -199,6 +198,7 @@ def plane_on_bone(bone, arm=None, cam=None, set_rotation=True, mesh=True): plane.matrix_world = mat return plane + mat_scale = Matrix.Scale(10, 4) plane = plane_coords() return matrix_transform(plane, mat @ mat_scale) @@ -272,8 +272,8 @@ def create_plane(name='Plane', collection=None): '''Create a plane using pydata collection: link in passed collection, else do not link in scene ''' - x = 1.0 - y = 1.0 + x = 100.0 + y = 100.0 vert = [(-x, -y, 0.0), (x, -y, 0.0), (-x, y, 0.0), (x, y, 0.0)] fac = [(0, 1, 3, 2)] pl_data = bpy.data.meshes.new(name)