Cura icon indicating copy to clipboard operation
Cura copied to clipboard

Create a Printer Profile for the AnyCubic Kobra 3 Max

Open TomLovering opened this issue 9 months ago • 12 comments

Is your feature request related to a problem?

There is no Printer Profile for the AnyCubic Kobra 3 Max

Describe the solution you'd like

Create a Printer Profile for the AnyCubic Kobra 3 Max

Describe alternatives you've considered

Shooting myself because I am so bummed without this profile

Affected users and/or printers

Everyone who buys the Kobra 3 Max

Additional information & file uploads

When this gets done please let me know. Wish I could do this myself but I am totally clueless about this sort of thing. My name and e-dress is Tom Lovering, [email protected]. Thanks in advance for doing this.

TomLovering avatar Apr 17 '25 04:04 TomLovering

All the definition files come from community members and/or users of the particular printer and/or occasionally from the manufacturer. If someone were to submit the files then it would certainly be considered for inclusion.

GregValiant avatar Apr 17 '25 09:04 GregValiant

The headache here is that Kobra 3 Max expects a rather lengthy, customized header (not to mention a thumbnail image!) on the gcode files submitted to it. If I can figure out exactly what in the header AnyCubicSlicerNext generates is not specific to the STL being sliced, I'll post it up here.

cellocgw avatar May 16 '25 12:05 cellocgw

Thanks Carl. Your efforts are truly appreciated.

Sincerely, ' ’Tom Lovering

On May 16, 2025, at 5:46 AM, Carl Witthoft @.***> wrote:

cellocgw left a comment (Ultimaker/Cura#20517) https://github.com/Ultimaker/Cura/issues/20517#issuecomment-2886624973 The headache here is that Kobra 3 Max expects a rather lengthy, customized header (not to mention a thumbnail image!) on the gcode files submitted to it. If I can figure out exactly what in the header AnyCubicSlicerNext generates is not specific to the STL being sliced, I'll post it up here.

— Reply to this email directly, view it on GitHub https://github.com/Ultimaker/Cura/issues/20517#issuecomment-2886624973, or unsubscribe https://github.com/notifications/unsubscribe-auth/BALFIHHDGU3DHKWVJMFINAL26XM4FAVCNFSM6AAAAAB3J4LWBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOBWGYZDIOJXGM. You are receiving this because you authored the thread.

TomLovering avatar May 16 '25 13:05 TomLovering

sorry to necro this issue but I just got my paws on a kobra 3 v2 and I wanted to see if I could help solve this issue. First it seems to encode an image file (so far i've only encountered pngs) between ; thumbnail begin SxS N and ; thumbnail end. Its b64 encoded. I wrote a little python script to decode that into bites and store it on disk, im sure you could very easily reverse that process to inject images into cura-generated gcode files. The repo is here. An injection script will be added to the repo when I get around to it.

After this, there seems to be a header that is pretty consistent across gcode files:

TYPE:Custom
G9111 bedTemp=65 extruderTemp=230 ;CUSTOM COMMAND, NOT DEFAULT MARLIN
M117 ;display LCD message
M900 K0.05 ;linear advance factor, ive only seen this set to k0.05

;START HEADER 
G21 ; set units to millimeters
G90 ; use absolute coordinates
M83 ; use relative distances for extrusion {NOT INCLUDED WITH CURA KOBRA 2 SETTING, USES ABSOLUTE}
T0 ;NOT INCLUDED WITH CURRENT KOBRA 2 SETTING - (set or report the current extruder or other tool)
M107 ; turn fan off (???) - NOT IN DEFAULT KOBRA 2 SETTING

I've added some annotations and compared to the header code that came with my Kobra 2 profile that ships with Cura.

I also found gcode annotated as wipe which might be useful

;WIPE_START
G1 F14400
G1 X99.553 Y118.278 E-.08276
G1 X99.817 Y118.115 E-.09825
G1 X100.119 Y117.987 E-.10387
G1 X100.598 Y117.878 E-.15556
G1 X101.731 Y117.809 E-.35956
;WIPE_END

I am now going to try and change my cura profile to include the header above instead of the Kobra 2 header

SamBkamp avatar Jun 15 '25 11:06 SamBkamp

Sam, This is Tom Lovering. I am the end user that put in the request for the Kobra 3 profile in Cura. Thank you for your efforts with this, it is hugely appreciated. Very unfortunately for me I know zero about computer code and so your instructions here are all Greek to me. Will you and/or your team let me know when Cura is updated with the Kobra 3 profile so I can start using it.

Again, thank you. I wish there were some way I could help out with this.

Sincerely,

Tom Lovering

On Jun 15, 2025, at 4:35 AM, Sam Bonnekamp @.***> wrote:

SamBkamp left a comment (Ultimaker/Cura#20517) https://github.com/Ultimaker/Cura/issues/20517#issuecomment-2973687456 sorry to necro this issue but I just got my paws on a kobra 3 v2 and I wanted to see if I could help solve this issue. First it seems to encode an image file (so far i've only encountered pngs) between ; thumbnail begin SxS N and ; thumbnail end. Its b64 encoded. I wrote a little python script to decode that into bites and store it on disk, im sure you could very easily reverse that process to inject images into cura-generated gcode files. The repo is here https://github.com/SamBkamp/AnycubicSlicerImageIntractor.git. An injection script will be added to the repo when I get around to it.

After this, there seems to be a header that is pretty consistent across gcode files:

TYPE:Custom G9111 bedTemp=65 extruderTemp=230 ;CUSTOM COMMAND, NOT DEFAULT MARLIN M117 ;display LCD message M900 K0.05 ;linear advance factor, ive only seen this set to k0.05

;START HEADER G21 ; set units to millimeters G90 ; use absolute coordinates M83 ; use relative distances for extrusion {NOT INCLUDED WITH CURA KOBRA 2 SETTING, USES ABSOLUTE} T0 ;NOT INCLUDED WITH CURRENT KOBRA 2 SETTING - (set or report the current extruder or other tool) M107 ; turn fan off (???) - NOT IN DEFAULT KOBRA 2 SETTING I've added some annotations and compared to the header code that came with my Kobra 2 profile that ships with Cura.

I also found gcode annotated as wipe which might be useful

;WIPE_START G1 F14400 G1 X99.553 Y118.278 E-.08276 G1 X99.817 Y118.115 E-.09825 G1 X100.119 Y117.987 E-.10387 G1 X100.598 Y117.878 E-.15556 G1 X101.731 Y117.809 E-.35956 ;WIPE_END I am now going to try and change my cura profile to include the header above instead of the Kobra 2 header

— Reply to this email directly, view it on GitHub https://github.com/Ultimaker/Cura/issues/20517#issuecomment-2973687456, or unsubscribe https://github.com/notifications/unsubscribe-auth/BALFIHGT26NL2VT7465MOKL3DVK6PAVCNFSM6AAAAAB3J4LWBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNZTGY4DONBVGY. You are receiving this because you authored the thread.

TomLovering avatar Jun 15 '25 15:06 TomLovering

I agree with your findings, and thanks indeed for the thumbnail generating code!
A gentle reminder to other users: take a look at all the speed settings in Anycubic's "slicerNext" app. No point in having a Kobra 3 if you run it slow :-) .

Personally, I like the thicker-walled tree supports slicerNext creates vs. Cura's thin walls. I don't see a setting in Cura to change the tree-wall thickness.

Carl PS: the opposite of "extract" is "insert," but I like the creativity of "intract".

sorry to necro this issue but I just got my paws on a kobra 3 v2 and I wanted to see if I could help solve this issue. First it seems to encode an image file (so far i've only encountered pngs) between ; thumbnail begin SxS N and ; thumbnail end. Its b64 encoded. I wrote a little python script to decode that into bites and store it on disk, im sure you could very easily reverse that process to inject images into cura-generated gcode files. The repo is here. An injection script will be added to the repo when I get around to it.

I am now going to try and change my cura profile to include the header above instead of the Kobra 2 header

cellocgw avatar Jun 15 '25 15:06 cellocgw

Hi Tom, If you go , in Cura to Preferences / Printers and click on the printer you are using, then on "Machine Settings," you'll see where you can edit the "Start Gcode" and "End Gcode" preamble and suffix.

Image

I think the Kobra 3 will run without the thumbnail image included in the gcode file -- the only difference will be that the file menu will display a generic icon rather than a picture of the item to be printed.

regards, Carl

Sam, This is Tom Lovering. I am the end user that put in the request for the Kobra 3 profile in Cura. Thank you for your efforts with this, it is hugely appreciated. Very unfortunately for me I know zero about computer code and so your instructions here are all Greek to me. Will you and/or your team let me know when Cura is updated with the Kobra 3 profile so I can start using it.

Again, thank you. I wish there were some way I could help out with this.

Sincerely,

Tom Lovering

cellocgw avatar Jun 15 '25 15:06 cellocgw

oh gosh I totally didn't see that typo in the repo name 😁 . I'm still trying to create a proper json file for this printer, starting g-code, speed and everything. Unfortunately gone down a rabbithole trying to compile Cura from source because I don't think you can plop files in a mounted appimage (im on linux). Once I have a tested JSON for this printer, I'll submit a PR and hopefully it will get added to the main repo.

SamBkamp avatar Jun 15 '25 15:06 SamBkamp

"I don't see a setting in Cura to change the tree-wall thickness."

@cellocgw - The settings are in Quality as "Support Line Width" and "Support Interface Line Width". You could also use the "Material" setting for "Support Wall Flow".

GregValiant avatar Jun 15 '25 16:06 GregValiant

@TomLovering I have created an initial config for the Kobra 3 v2 with buildplate and everything, but its still not perfect. Though if youre interested in using it (and potentially helping me with feature requests) you can check it out here

SamBkamp avatar Jun 16 '25 17:06 SamBkamp

trying to compile Cura from source because I don't think you can plop files in a mounted appimage (im on linux).

You can just drop the files in the configuration folder for linux I believe it's ~/.config/cura/<version> Each file should be placed under the corresponding folder that matches the file's content:

  • Printer definition -> definitions
  • Printer extruder -> extruders
  • extruder variants -> variants/manufacturer
  • ... and so on. Cura restart would be needed before the changes get loaded in, but it's better than running from source.

HellAholic avatar Jun 16 '25 20:06 HellAholic

just a quick update @TomLovering. I have submitted a PR with my working profile for this printer. I'm not sure if/when this will go into the main release, but in the mean time you can use the files in that Pull Request

https://github.com/Ultimaker/Cura/pull/20703

SamBkamp avatar Jun 20 '25 06:06 SamBkamp