Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions SurfaceFollow28.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
# If there are weird bind errors like the mesh is not deforming correctly, compare
# the oct version of closest triangles to the one without oct


bl_info = {
"name": "Surface Follow",
"author": "Rich Colburn, email: the3dadvantage@gmail.com",
"version": (1, 0),
"blender": (2, 80, 0),
"version": (1, 0, 2),
"blender": (4, 2, 0),
"location": "View3D > Extended Tools > Surface Follow",
"description": "Doforms an object as the surface of another object changes",
"warning": "You might have only imagined you were halucinating",
Expand Down Expand Up @@ -262,7 +261,7 @@ def nearest_triangles_oct(surface_coords, follower_coords, tris): # octree
# yes I really created an octree inline. What's the world coming to... I know, I know
follow_co = follower_coords.astype(np.float32)
surface_co = surface_coords.astype(np.float32)
fill_me = np.zeros(len(follow_co), dtype=np.int)
fill_me = np.zeros(len(follow_co), dtype=np.int_)

means = np.mean(surface_co[tris], axis=1)
# 2: Get the mean of the surface tri means.
Expand Down
10 changes: 5 additions & 5 deletions UVShape28.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
bl_info = {
"name": "UV Shape",
"author": "Rich Colburn, email: the3dadvantage@gmail.com",
"version": (1, 0),
"blender": (2, 80, 0),
"version": (1, 0, 2),
"blender": (4, 2, 0),
"location": "View3D > Extended Tools > Create UV Shape",
"description": "Creates a flattened version of the mesh as a shape key",
"warning": "Life is a vapor of smoke. Eternity lasts forever.",
Expand All @@ -18,7 +18,7 @@ def get_selected_edges(ob='empty'):
'''returns a bool array of selected edges'''
if ob == 'empty':
ob = bpy.context.object
ed = np.zeros(len(ob.data.edges), dtype=np.bool)
ed = np.zeros(len(ob.data.edges), dtype=np.bool_)
ob.data.edges.foreach_get('select', ed)
return ed

Expand Down Expand Up @@ -140,7 +140,7 @@ def basic_unwrap():

ob.data.uv_layers.active_index = len(ob.data.uv_layers) - 1
ob.active_shape_key_index = 0
data.vertices.foreach_set('select', np.ones(len(data.vertices), dtype=np.bool))
data.vertices.foreach_set('select', np.ones(len(data.vertices), dtype=np.bool_))

bpy.ops.object.mode_set(mode='EDIT')
bpy.ops.uv.unwrap(method='ANGLE_BASED', margin=0.0635838)
Expand Down Expand Up @@ -375,7 +375,7 @@ def autosplit_geometry():
bpy.ops.object.mode_set(mode='OBJECT')

# use numpy to count remaining
stored = np.zeros(len(ob.data.vertices), dtype=np.bool)
stored = np.zeros(len(ob.data.vertices), dtype=np.bool_)
ob.data.vertices.foreach_get('select', stored)
remaining = len(stored[stored])

Expand Down
6 changes: 3 additions & 3 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
bl_info = {
"name": "Wrapping Tools",
"author": "Rich Colburn, email: the3dadvantage@gmail.com",
"version": (1, 0),
"blender": (2, 80, 0),
"version": (1, 0, 2),
"blender": (4, 2, 0),
"location": "View3D > Extended Tools",
"description": "Tools for deforming around complex surfaces",
"description": "Tools for deforming around complex surfaces. Fixed by Lordchammon",
"warning": "If God loses self-confidence He will be an atheist",
"wiki_url": "",
"category": '3D View'}
Expand Down