Skip to content

Unknown syntax error {endif} #15

Description

@spuder

I've successfully used this script in the past, yet when I setup a new computer using the latest version from GitHub, I get the following error in BambuSlicer

Screenshot 2024-10-08 at 17 09 44

Versions

BambuStudio: 1.9.7.52
OSX: 15.0 (24A335)

Steps to reproduce

  1. Copy/Paste the contents of change_filament_noAMS_P1P_0.4nozzle_v1.9.5.gcode at commit ab1cb728726ea4168058958b4a4b6de65f92c680 into the Change filament g-code section
Screenshot 2024-10-08 at 20 42 42
  1. Attempt to slice any file

Workaround

Remove line 190 (Though I'm not convinced this is the correct solution)

Additional information

I've reverted and applied this custom gCode multiple times on multiple instances of BambuSlicer. I'm positive I'm copying/pasting correctly.

Bug also present in following commits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions