chore: hide logging

This commit is contained in:
Radionic
2023-09-26 18:21:52 +08:00
parent 805db3604d
commit a7f2cb8e33
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -82,7 +82,7 @@ class ObjectOps:
results = self.blender_process(bpy, **props)
if results is None:
print(results)
# print(results)
if props.get("BPY_OBJ") != None:
return (props["BPY_OBJ"], )
else:
@@ -195,7 +195,7 @@ def print_blender_functions(path):
# add a an empty object
print(dir(get_nested_attr(bpy, path)), type(get_nested_attr(bpy, path)))
# print(dir(get_nested_attr(bpy, path)), type(get_nested_attr(bpy, path)))
def create_ops_class(cls, path, name=None, name_prefix=''):
+2 -2
View File
@@ -68,8 +68,8 @@ class GroupVertexInside():
# get the indices of the vertices that are inside the convex hull
inside_vertices_indices = [i for (x,y,i) in all_vertices_without_vertex_group if tri.find_simplex((x,y))>=0]
print(inside_vertices_indices)
print(len(vertex_group_vertices))
# print(inside_vertices_indices)
# print(len(vertex_group_vertices))
bpy.ops.mesh.select_all(action='DESELECT')
+3 -3
View File
@@ -51,8 +51,8 @@ class Mesh_ModifyShapeKey(blender_node.ObjectOps):
# Create a new array of verts with sk as co and verts' groups
new_verts = []
for i, vert in enumerate(verts):
print(i)
print(sk.data[i].co)
# print(i)
# print(sk.data[i].co)
new_vert = {
'co': sk.data[i].co,
'groups': vert.groups
@@ -129,6 +129,6 @@ class Mesh_ModifyShapeKey(blender_node.ObjectOps):
new_pos = center + vec
# Apply new position
print(i, vert['co'], new_pos, weight)
# print(i, vert['co'], new_pos, weight)
sk.data[i].co = new_pos