OrcaSlicer icon indicating copy to clipboard operation
OrcaSlicer copied to clipboard

Thumbnails not being displayed on qidi x-max 3 screen

Open pmbroth opened this issue 1 year ago • 7 comments

Is there an existing issue for this problem?

  • [X] I have searched the existing issues

OrcaSlicer Version

2.1.1

Operating System (OS)

Windows

OS Version

windows

Additional system information

No response

Printer

Qidi X-max 3

How to reproduce

send job to printer, no thumbnail generated image

Actual results

black screen, no thumbnail is shown, goto Qidi users forums, users are all stating this with 2.1.1

Expected results

Thumbnail to be displayed

Project file & Debug log uploads

any stl will produce this outcome

settings below

image

Checklist of files to include

  • [X] Log file
  • [X] Project file

Anything else?

image

pmbroth avatar Jul 01 '24 19:07 pmbroth

I could confirm this for the Qidi X-Plus 3. Reason: The COLPIC section (gimage, simage) have to be at the end of the gcode, as it was before 2.1 final with the thumbnails revamp. See: https://github.com/SoftFever/OrcaSlicer/pull/5555

kiniad avatar Jul 01 '24 20:07 kiniad

QIDI X-Plus 3, yes this problem is still there since previous versions. I tried all sorts of combinations of resolution, number of resolutions (for example 380x380/COLPIC only), other bitmap formats and so on. Nothing helped at all. A small thumbnail will appear in the file list. But not in the main window. Just the black square instead of the preview. With QIDI slicer it works corectly of course, ORCA doesn't. QIDI slicer settings are: 380x380/QIDI, 210x210/QIDI, 110x110/PNG. Well, ORCA doesn't know the QIDI type and uses COLPIC instead, but of course I immediately tried 380x380/COLPIC, 210x210/COLPIC, 110x110/PNG but alas — still the same, just black squere and not white circle or — required thumbnail… :-)))

Viktor-N-snr avatar Jul 04 '24 16:07 Viktor-N-snr

Verified that if you save the gcode file, open with notepadd++ or similar and cut the ;gimage and ;simage sections, paste them at the very end, the thumbnails come right up when you use the device screen to upload the gcode file. I haven't had a chance to actually print a test file yet, but it looks promising. Should be a simple fix for Orca code.

cableguyed avatar Jul 14 '24 15:07 cableguyed

Thanks for this interesting solution, but really there is no chance to edit each G-Code, when I am sending that directly to the printer. :-)

Viktor-N-snr avatar Jul 14 '24 15:07 Viktor-N-snr

Hi, If you click on the down arrow next to the print tab and select save as gcode instead, then create the file, edit it to make it show the thumbnail, then go to the device tab and under jobs click on the plus sign and select upload, then browse to the edited gcode file and you will have the thumbnail on the printer screen when you select to print the file. This is just a temporary fix until the coders get around to qidi update on orca... I have multiple qidi printers and like to see what is on each at a glance. Regards, Ed

On Sun, Jul 14, 2024 at 9:26 AM Viktor-N-snr @.***> wrote:

Thanks for this interesting solution, but really there is no chance to edit each G-Code, when I am sending that directly to the printer. :-)

— Reply to this email directly, view it on GitHub https://github.com/SoftFever/OrcaSlicer/issues/5973#issuecomment-2227386198, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4WM7TALIB5B23UMSPC5WDZMKKBJAVCNFSM6AAAAABKGGELHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRXGM4DMMJZHA . You are receiving this because you commented.Message ID: @.***>

cableguyed avatar Jul 15 '24 11:07 cableguyed

This is what I did, and it works on my qidi x-max 3, I moved the thumbnail section to the bottom of the configuration file. Move yellow section to the bottom, as I did in the json file attached. json file fdm_qidi_x3_common.json

pmbroth avatar Jul 15 '24 13:07 pmbroth

That made no difference for my X-Max3.

On Mon, Jul 15, 2024 at 7:12 AM pmbroth @.***> wrote:

This is what I did, and it works on my qidi x-max 3, I moved the thumbnail section to the bottom of the configuration file. fdm_qidi_x3_common.json https://github.com/user-attachments/files/16234971/fdm_qidi_x3_common.json

— Reply to this email directly, view it on GitHub https://github.com/SoftFever/OrcaSlicer/issues/5973#issuecomment-2228474861, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4WM7QSUIXSYNUSLT7J5L3ZMPDD7AVCNFSM6AAAAABKGGELHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRYGQ3TIOBWGE . You are receiving this because you commented.Message ID: @.***>

cableguyed avatar Jul 15 '24 23:07 cableguyed

Use this script in the post-processing setting: Global Settings -> Others -> [scroll to the bottom] -> Post-processing Scripts -> type the full path of the script you downloaded (make sure that the script is executable).

It worked for my X-Plus 3.

Thanks @kiniad. Looks like moving the whole thumbnail block works.

nicolalamacchia avatar Jul 25 '24 16:07 nicolalamacchia

I tried the solution posted by @pmbroth; it did not work on my X-Max 3.

jimwhitelaw avatar Aug 14 '24 18:08 jimwhitelaw

Compiling the python script (with minor tweak to get the start point fixed) works great for both my X-Max3 and X-Smart 3. Thanks Nicola!

cableguyed avatar Aug 18 '24 11:08 cableguyed

Compiling the python script (with minor tweak to get the start point fixed) works great for both my X-Max3 and X-Smart 3. Thanks Nicola!

Hi @cableguyed ! How did u do that? I'v copied that file to my: /home/mks/qidi_thumbnail.py and make it executable and after that I copied address to orcaslicer. Still not workig. Am I missing something?

1 image Thank you!

ovidakis avatar Aug 25 '24 11:08 ovidakis

First, make a copy of the qidi_thumbnail.py just in case... I had to edit the qidi_thumbnail.py to change the " # Find the start and end of the thumbnail block" section to: for i, line in enumerate(lines): if re.match(r'; HEADER_BLOCK_END', line): thumbnail_start = i+1 if re.match(r'; external perimeters*', line): thumbnail_end = i-1 I haven't done any Python programming at all and any serious programming for years so I had to google some python methods to figure out that the program wants to look in the Python/scripts area for the compiled result. Below is my file path once I created the executable in Python. (And put your path in the post-processing scripts area in Orca.)

C:\Users\cable\AppData\Local\Programs\Python\Python312\Scripts\dist\qidi_thumbnail.exe;

I also had to change the image sizes for the different LCD screen sizes between my X-Max3 and my X-Smart3. X-Max3 = 380x380/COLPIC, 210x210/COLPIC, 110x110/PNG X-Smart3 = 210x210/COLPIC, 110x110/COLPIC, 110x110/PNG

Hope this helps! Regards, Ed

On Sun, Aug 25, 2024 at 5:24 AM ovidakis @.***> wrote:

Compiling the python script (with minor tweak to get the start point fixed) works great for both my X-Max3 and X-Smart 3. Thanks Nicola!

Hi @cableguyed https://github.com/cableguyed ! How did u do that? I'v copied that file to my: /home/mks/qidi_thumbnail.py and make it executable and after that I copied address to orcaslicer. Still not workig. Am I missing something?

1.JPG (view on web) https://github.com/user-attachments/assets/79f41d79-6122-4db7-8740-e458dd0897a9 image.png (view on web) https://github.com/user-attachments/assets/122c54ae-166b-458c-97de-e0af1647043d Thank you!

— Reply to this email directly, view it on GitHub https://github.com/SoftFever/OrcaSlicer/issues/5973#issuecomment-2308788879, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4WM7TZXZOOFQRBSFRLW5DZTG5F3AVCNFSM6AAAAABKGGELHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYG44DQOBXHE . You are receiving this because you were mentioned.Message ID: @.***>

cableguyed avatar Aug 25 '24 12:08 cableguyed

Hi Ed, still not woking :( I looked to g-code file and I found at the end of the file that the post-processing script done the job. Probably xindi/display cant read correctly those lines. By the way, my printer (X-max3) is on latest firmware based on Debian 12 Bookworm. BR, ovi

ovidakis avatar Aug 26 '24 20:08 ovidakis

I only update firmware from qidi direct, don't know if that makes a difference.

On Mon, Aug 26, 2024, 2:34 PM ovidakis @.***> wrote:

First, make a copy of the qidi_thumbnail.py just in case... I had to edit the qidi_thumbnail.py to change the " # Find the start and end of the thumbnail block" section to: for i, line in enumerate(lines): if re.match(r'; HEADER_BLOCK_END', line): thumbnail_start = i+1 if re.match(r'; external perimeters*', line): thumbnail_end = i-1 I haven't done any Python programming at all and any serious programming for years so I had to google some python methods to figure out that the program wants to look in the Python/scripts area for the compiled result. Below is my file path once I created the executable in Python. (And put your path in the post-processing scripts area in Orca.) C:\Users\cable\AppData\Local\Programs\Python\Python312\Scripts\dist\qidi_thumbnail.exe; I also had to change the image sizes for the different LCD screen sizes between my X-Max3 and my X-Smart3. X-Max3 = 380x380/COLPIC, 210x210/COLPIC, 110x110/PNG X-Smart3 = 210x210/COLPIC, 110x110/COLPIC, 110x110/PNG Hope this helps! Regards, Ed … <#m_2451421436868073245_> On Sun, Aug 25, 2024 at 5:24 AM ovidakis @.> wrote: Compiling the python script (with minor tweak to get the start point fixed) works great for both my X-Max3 and X-Smart 3. Thanks Nicola! Hi @cableguyed https://github.com/cableguyed https://github.com/cableguyed https://github.com/cableguyed ! How did u do that? I'v copied that file to my: /home/mks/qidi_thumbnail.py and make it executable and after that I copied address to orcaslicer. Still not workig. Am I missing something? 1.JPG (view on web) https://github.com/user-attachments/assets/79f41d79-6122-4db7-8740-e458dd0897a9 https://github.com/user-attachments/assets/79f41d79-6122-4db7-8740-e458dd0897a9 image.png (view on web) https://github.com/user-attachments/assets/122c54ae-166b-458c-97de-e0af1647043d https://github.com/user-attachments/assets/122c54ae-166b-458c-97de-e0af1647043d Thank you! — Reply to this email directly, view it on GitHub <#5973 (comment) https://github.com/SoftFever/OrcaSlicer/issues/5973#issuecomment-2308788879>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4WM7TZXZOOFQRBSFRLW5DZTG5F3AVCNFSM6AAAAABKGGELHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYG44DQOBXHE https://github.com/notifications/unsubscribe-auth/AO4WM7TZXZOOFQRBSFRLW5DZTG5F3AVCNFSM6AAAAABKGGELHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYG44DQOBXHE . You are receiving this because you were mentioned.Message ID: @.>

Hi Ed, still not woking :( I looked to g-code file and I found at the end of the file that the post-processing script done the job. Probably xindi/display cant read correctly those lines. By the way, my printer (X-max3) is on latest firmware based on Debian 12 Bookworm.

— Reply to this email directly, view it on GitHub https://github.com/SoftFever/OrcaSlicer/issues/5973#issuecomment-2311038823, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4WM7Q75WMEI2FDVBVVYRLZTOGOPAVCNFSM6AAAAABKGGELHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJRGAZTQOBSGM . You are receiving this because you were mentioned.Message ID: @.***>

cableguyed avatar Aug 26 '24 20:08 cableguyed

I can confirm the thumbnails are not working on my X-Plus 3 with current QIDI firmware using 2.1.1. Very frustrating since this seems to have been committed in the latest build.

Brandon520x avatar Sep 11 '24 03:09 Brandon520x

Still not working on the X-Plus 3 and 2.2.0-beta version.

astrojolo avatar Sep 17 '24 20:09 astrojolo

still not working on the X-Plus3 Orcaslicer v2.2.0-beta2

toxin9993 avatar Oct 02 '24 19:10 toxin9993

rc 22 still thumbnails not working. .

pmbroth avatar Oct 09 '24 15:10 pmbroth

Thumbnails still not working with 2.2 RC

pmbroth avatar Oct 18 '24 17:10 pmbroth

Just wanted to chime in to say that cableguyed's solution worked on my X-Max 3 in OrcaSlicer. I didn't know what he was talking about with creating executable's in python, so I just edited the script according to what he said. First try, I got a line indentation error when trying to print my first file, which means that a straight copy and paste made the start of the edit indented by one space. Whoops.... Took that back one space by comparing it to the original script posted by nicolalamacchia and it worked! I'm on the latest X-Max 3 firmware by the way, and OrcaSlicer 2.2 RC.

breathless19 avatar Oct 18 '24 19:10 breathless19

@breathless19 You edited the script that you downloaded from his site? Then you just placed the whole script in the post processing area?

pmbroth avatar Oct 30 '24 17:10 pmbroth

I looked at the script and it didn't match the gcode that my X-Max3 made so I edited it to catch the proper start and end lines of the 2 image sections at the top part of the gcode file that I used to test with. And No, you have to compile it to an executable with python. There are directions where you download python... I put the executable where python put it and just copied the path in Orca postprocessing script area. BTW, it's working fine, use it constantly. Regards, Ed

On Wed, Oct 30, 2024 at 11:31 AM pmbroth @.***> wrote:

@breathless19 https://github.com/breathless19 You edited the script that you downloaded from his site? Then you just placed the whole script in the post processing area?

— Reply to this email directly, view it on GitHub https://github.com/SoftFever/OrcaSlicer/issues/5973#issuecomment-2447889943, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4WM7VC7I4AVQQXR6XENM3Z6EJYBAVCNFSM6AAAAABKGGELHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBXHA4DSOJUGM . You are receiving this because you were mentioned.Message ID: @.***>

cableguyed avatar Oct 30 '24 18:10 cableguyed

I firgured it out. I compoiled the script and all works...

pmbroth avatar Oct 30 '24 18:10 pmbroth

Glad to hear!

On Wed, Oct 30, 2024 at 12:44 PM pmbroth @.***> wrote:

I firgured it out. I compoiled the script and all works...

— Reply to this email directly, view it on GitHub https://github.com/SoftFever/OrcaSlicer/issues/5973#issuecomment-2448071699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4WM7W3G35P2GGGI33BW33Z6ESJPAVCNFSM6AAAAABKGGELHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBYGA3TCNRZHE . You are receiving this because you were mentioned.Message ID: @.***>

cableguyed avatar Oct 30 '24 18:10 cableguyed

Thank you again for your solution!!!! @cableguyed

pmbroth avatar Oct 31 '24 18:10 pmbroth

And we cannot have a simple solution for this?

cptcl avatar Dec 06 '24 11:12 cptcl

Sorry I am late to the party. If I read everything correctly, I am using a X Max 3 with Orca 2.2.0 I have downloaded the Python script and edited it using Thoney. (Still a novice python person) What are you all using to convert the script to an EXE file? And I assume I need to post a link to the file here? post

BobW55 avatar Jan 03 '25 01:01 BobW55

Hi Bob, It has been a while since I did it but you need to download an IDE in order to compile the script into an exe. There are several, search for python IDE's. I had to tweak the script a little in order to get it to capture the start and end of the 2 image sections. Look at a gcode file from your slicer for your printer and find unique lines at the start and end of the images and edit the script to work properly. Again, it has been some time since I did it so I'm a little hazy on the specifics but if I could do it, I'm sure you can too. And yes, put the exe file path in the location you referenced. It still works even with several firmware updates since I did it. Just make sure to put the path in if you change to a new setup for your printer.

On Thu, Jan 2, 2025 at 6:09 PM BobW55 @.***> wrote:

Sorry I am late to the party. If I read everything correctly, I am using a X Max 3 with Orca 2.2.0 I have downloaded the Python script and edited it using Thoney. (Still a novice python person) What are you all using to convert the script to an EXE file? And I assume I need to post a link to the file here? post.png (view on web) https://github.com/user-attachments/assets/2a8ac84d-7110-4904-9815-726df7aeff12

— Reply to this email directly, view it on GitHub https://github.com/SoftFever/OrcaSlicer/issues/5973#issuecomment-2568577731, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4WM7RATZX2HYIWOSIDHO32IXPNBAVCNFSM6AAAAABKGGELHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRYGU3TONZTGE . You are receiving this because you were mentioned.Message ID: @.***>

cableguyed avatar Jan 03 '25 14:01 cableguyed

I managed to get the PY into an EXE file. I can see it run and I get no returned error. Is this the proper location for the .json file? Location

BobW55 avatar Jan 03 '25 18:01 BobW55

Ok found the correct place in the Orca slicer folder to place the Json file. Have to wait for current print to finish so I can reboot everything. Fingers crossed.

BobW55 avatar Jan 04 '25 02:01 BobW55