kopia lustrzana https://github.com/vilemduha/blendercam
🎨 Format Python code with psf/black
rodzic
ea67fbf755
commit
2fedd00e3e
|
|
@ -694,13 +694,14 @@ class Creator(nc.Creator):
|
||||||
# self.s.set(s, self.SPINDLE_CW(), self.SPINDLE_CCW())
|
# self.s.set(s, self.SPINDLE_CW(), self.SPINDLE_CCW())
|
||||||
# else:
|
# else:
|
||||||
# self.s.set(s, self.SPINDLE_CCW(), self.SPINDLE_CW())
|
# self.s.set(s, self.SPINDLE_CCW(), self.SPINDLE_CW())
|
||||||
def spindle(self, s, clockwise): # EXPERIMENTAL -- grbl only
|
def spindle(self, s, clockwise): # EXPERIMENTAL -- grbl only
|
||||||
# Get machine settings
|
# Get machine settings
|
||||||
machine = bpy.context.scene.cam_machine
|
machine = bpy.context.scene.cam_machine
|
||||||
|
|
||||||
if (machine.spindle_slow_start_enable and
|
if (
|
||||||
s > machine.spindle_min + machine.spindle_slow_start_skip_threshold):
|
machine.spindle_slow_start_enable
|
||||||
|
and s > machine.spindle_min + machine.spindle_slow_start_skip_threshold
|
||||||
|
):
|
||||||
# Generate slow start sequence
|
# Generate slow start sequence
|
||||||
steps = machine.spindle_slow_start_steps
|
steps = machine.spindle_slow_start_steps
|
||||||
total_time = machine.spindle_slow_start_total_time
|
total_time = machine.spindle_slow_start_total_time
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ def register():
|
||||||
|
|
||||||
|
|
||||||
def unregister():
|
def unregister():
|
||||||
|
|
||||||
for fabex_icons in preview_collections.values():
|
for fabex_icons in preview_collections.values():
|
||||||
bpy.utils.previews.remove(fabex_icons)
|
bpy.utils.previews.remove(fabex_icons)
|
||||||
preview_collections.clear()
|
preview_collections.clear()
|
||||||
|
|
|
||||||
|
|
@ -109,9 +109,14 @@ class CAM_MACHINE_Panel(CAMParentPanel, Panel):
|
||||||
subcol = col.column(align=True)
|
subcol = col.column(align=True)
|
||||||
subcol.enabled = self.machine.spindle_slow_start_enable
|
subcol.enabled = self.machine.spindle_slow_start_enable
|
||||||
subcol.prop(self.machine, "spindle_slow_start_steps", text="Steps")
|
subcol.prop(self.machine, "spindle_slow_start_steps", text="Steps")
|
||||||
subcol.prop(self.machine, "spindle_slow_start_skip_threshold", text="Skip Small Increase (RPM)")
|
subcol.prop(
|
||||||
subcol.prop(self.machine, "spindle_slow_start_total_time", text="Total Time (sec)")
|
self.machine,
|
||||||
|
"spindle_slow_start_skip_threshold",
|
||||||
|
text="Skip Small Increase (RPM)",
|
||||||
|
)
|
||||||
|
subcol.prop(
|
||||||
|
self.machine, "spindle_slow_start_total_time", text="Total Time (sec)"
|
||||||
|
)
|
||||||
|
|
||||||
# Gcode Options
|
# Gcode Options
|
||||||
if self.level >= 1:
|
if self.level >= 1:
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__=(1,0,67)
|
__version__ = (1, 0, 67)
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue