renaming
This commit is contained in:
parent
ed047337ba
commit
4c69d7095b
5 changed files with 12 additions and 6 deletions
|
|
@ -35,7 +35,7 @@ NodeSlicer is a high-performance Blender extension that provides a custom node-b
|
|||
* Add internal structure with the **Infill** node.
|
||||
* Combine or modify paths using **Join Paths** or **Join Slices**.
|
||||
5. **Generate**: Convert paths to G-code using **Paths to Gcode**.
|
||||
6. **Export & Preview**: Use **Gcode To File** to save the result, and **Gcode Preview** to visualize the final toolpaths in the viewport.
|
||||
6. **Export & Preview**: Use **Gcode To File** to save the result, and **Gcode to Preview Mesh** to visualize the final toolpaths in the viewport.
|
||||
|
||||
## Documentation
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from .base import ExecSliceNode
|
|||
|
||||
@register_class
|
||||
class SLICENODE_GcodeToMesh(ExecSliceNode):
|
||||
bl_label = "Gcode Preview"
|
||||
bl_label = "Gcode to Preview Mesh"
|
||||
|
||||
button_label = "Update Preview"
|
||||
show_e_0: NfBoolProperty(name="Show Zero Extrusions", default=False) # pyright: ignore[reportInvalidTypeForm]
|
||||
|
|
@ -195,6 +195,12 @@ class SLICENODE_GcodeToMesh(ExecSliceNode):
|
|||
|
||||
for i, gcode in enumerate(valid_gcodes):
|
||||
mesh_name = base_mesh_name if i == 0 else f"{base_mesh_name}_{i+1}"
|
||||
try:
|
||||
self._process_gcode(gcode, mesh_name, operator)
|
||||
except Exception as e:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
if operator:
|
||||
operator.report({'WARNING'}, f"Failed to preview G-code {i+1}: {e}")
|
||||
|
||||
return 'ok'
|
||||
|
|
|
|||
|
|
@ -537,7 +537,7 @@ class SLICENODE_MT_ActionIO(Menu):
|
|||
layout.operator("node.add_node", text="Baserow Submit").type = "SLICENODE_BaserowSubmit"
|
||||
layout.operator("node.add_node", text="Airtable Submit").type = "SLICENODE_AirtableSubmit"
|
||||
layout.separator()
|
||||
layout.operator("node.add_node", text="Gcode Preview").type = "SLICENODE_GcodeToMesh"
|
||||
layout.operator("node.add_node", text="Gcode to Preview Mesh").type = "SLICENODE_GcodeToMesh"
|
||||
layout.operator("node.add_node", text="PrusaSlicer Preview").type = "SLICENODE_PrusaslicerPreview"
|
||||
layout.operator("node.add_node", text="PrusaSlicer Slice").type = "SLICENODE_PrusaslicerSlice"
|
||||
layout.operator("node.add_node", text="Executor").type = "SLICENODE_Executor"
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ All nodes are found in the **Add (Shift+A)** menu under the **SliceNodes** categ
|
|||
- **Config**: PrusaSlicer configuration (from the **PrusaSlicer Config** node).
|
||||
- **Gcode**: Output socket providing the generated G-code string.
|
||||
- **Gcode to Text Block**: Creates a new Blender text block containing the G-code and opens it in any active text editors.
|
||||
- **Gcode Preview**: Decodes G-code and creates a Blender mesh ("Debug" object) for visualization.
|
||||
- **Gcode to Preview Mesh**: Decodes G-code and creates a Blender mesh ("Debug" object) for visualization.
|
||||
- **PrusaSlicer Preview**: Launches PrusaSlicer's built-in G-code viewer to visualize a G-code string.
|
||||
- **Executable**: Path to the PrusaSlicer executable (default: `flatpak run com.prusa3d.PrusaSlicer`).
|
||||
- **Gcode**: Input socket for the G-code string to preview.
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ Follow these steps to generate G-code for a simple object and preview it:
|
|||
* This node generates the raw G-code text.
|
||||
|
||||
### Step 4: Preview the Result
|
||||
* Add a **Gcode Preview** node.
|
||||
* Add a **Gcode to Preview Mesh** node.
|
||||
* Connect the Gcode output to it.
|
||||
* Click the **Update Debug Mesh** button on the node.
|
||||
* A new object named **Debug** will appear in your scene, showing the toolpaths.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue