Debug finished
parent
672b613bbf
commit
5f04bf6478
|
@ -185,6 +185,7 @@ class GP_OT_interpolate_stroke_velocity(GP_OT_interpolate_stroke_base):
|
||||||
grid_ob = bpy.data.objects.new('Velocity Grid Object', eval_ob.data.copy())
|
grid_ob = bpy.data.objects.new('Velocity Grid Object', eval_ob.data.copy())
|
||||||
|
|
||||||
# copy_ob = velocity_ob.copy()
|
# copy_ob = velocity_ob.copy()
|
||||||
|
# copy_ob.data = copy_ob.data.copy()
|
||||||
# scn.collection.objects.link(copy_ob)
|
# scn.collection.objects.link(copy_ob)
|
||||||
|
|
||||||
velocity_ob.modifiers.remove(grid_velocity_mod)
|
velocity_ob.modifiers.remove(grid_velocity_mod)
|
||||||
|
@ -233,7 +234,8 @@ class GP_OT_interpolate_stroke_velocity(GP_OT_interpolate_stroke_base):
|
||||||
|
|
||||||
stroke.points.foreach_set('co', [v for p in new_points_3d for v in self.gp.matrix_world.inverted() @p])
|
stroke.points.foreach_set('co', [v for p in new_points_3d for v in self.gp.matrix_world.inverted() @p])
|
||||||
|
|
||||||
#stroke.points.foreach_set('co', [v for p in points_2d for v in self.gp.matrix_world.inverted() @p])
|
#new_points_2d = [ p+vel for p, vel in zip(points_2d, points_velocity)]
|
||||||
|
#stroke.points.foreach_set('co', [v for p in new_points_2d for v in self.gp.matrix_world.inverted() @p])
|
||||||
stroke.points.update()
|
stroke.points.update()
|
||||||
|
|
||||||
bpy.data.meshes.remove(grid_ob.data)
|
bpy.data.meshes.remove(grid_ob.data)
|
||||||
|
|
|
@ -87,7 +87,7 @@ class GP_PG_interpolate_settings(PropertyGroup):
|
||||||
#selection: EnumProperty(default='SELECTED', items=[("SELECTED", "Selected", ""), ("ALL", "All", "")],
|
#selection: EnumProperty(default='SELECTED', items=[("SELECTED", "Selected", ""), ("ALL", "All", "")],
|
||||||
# description="Stroke to interpolate")
|
# description="Stroke to interpolate")
|
||||||
|
|
||||||
smooth_level: IntProperty(default=2, min=0, max=10, name='Smooth Level')
|
smooth_level: IntProperty(default=2, min=0, max=20, name='Smooth Level')
|
||||||
|
|
||||||
classes = (
|
classes = (
|
||||||
GP_PG_interpolate_settings,
|
GP_PG_interpolate_settings,
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue