Closed taker218 closed 3 years ago
Will sla_material_settings_id work?
st 30. 12. 2020 v 19:07 odesílatel taker218 notifications@github.com napsal:
Version
Version 2.3.0-rc2+win64 Operating system type + version
Windows 10 3D printer brand / version + firmware version (if known)
Not relevant for this issue Behavior
I just started to use PrusaSlicer for slicing my files for a resin printer and wanted to add the used material to the output filename. I already do this for my FDM printers, so I can see how much filament I need for this print.
Is there a variable for the used material on resin prints as well? Project File (.3MF) where problem occurs
Upload a PrusaSlicer Project File (.3MF) (Plater -> Export plate as 3MF for Slic3r PE 1.41.2 and older, File -> Save / Save Project for PrusaSlicer, Slic3r PE 1.42.0-alpha and newer) Images (PNG, GIF, JPEG), PDFs or text files could be drag & dropped to the issue directly, while all other files need to be zipped first (.zip, .gz)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/prusa3d/PrusaSlicer/issues/5640, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMPSI66ZTR6NJU2KKJR6Q3SXNT63ANCNFSM4VOSJ4ZQ .
If I use this placeholder I get the name from my material settings, not the used material (in ml) like in the Sliced Info
I may not have been too clear in my post there.
"print_time", "total_cost", "total_weight",
"objects_used_material", "support_used_material"
po 4. 1. 2021 v 16:33 odesílatel taker218 notifications@github.com napsal:
If I use this placeholder I get the name from my material settings, not the used material (in ml) like in the Sliced Info [image: 2021-01-04 16_31_46-PrusaSlicer-2 3 0-rc2 based on Slic3r] https://user-images.githubusercontent.com/15029277/103551295-6f153600-4eaa-11eb-9429-ed621ddc2810.png
I may not have been too clear in my post there.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/prusa3d/PrusaSlicer/issues/5640#issuecomment-754043844, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMPSI2EHTJQJNEVIBQ4FN3SYHNTRANCNFSM4VOSJ4ZQ .
total_weight says zero on my print.
The other two "objects_used_material" and "support_used_material" seem to give me some kind of output, but it's not in ml.
objects_used_material: 1138.77 (should be rounded to 1.14) support_used_material:1221.86 (should be rounded to 1.22) total_weight: 0
It's in mm³. You can convert to ml: {(objects_used_material+support_used_material)/1000}
You can also round using math {(int((((objects_used_material + support_used_material)/1000.0)*100.0-0.5))+1)/100.0}
It's in mm³. You can convert to ml:
{(objects_used_material+support_used_material)/1000}
You can also round using math{(int((((objects_used_material + support_used_material)/1000.0)*100.0-0.5))+1)/100.0}
That's exactly what I wanted. It looks funky, but it works 👍 Thanks!
Version
Version 2.3.0-rc2+win64
Operating system type + version
Windows 10
3D printer brand / version + firmware version (if known)
Not relevant for this issue
Behavior
I just started to use PrusaSlicer for slicing my files for a resin printer and wanted to add the used material to the output filename. I already do this for my FDM printers, so I can see how much filament I need for this print.
Is there a variable for the used material on resin prints as well?
Project File (.3MF) where problem occurs
Upload a PrusaSlicer Project File (.3MF) (
Plater -> Export plate as 3MF
for Slic3r PE 1.41.2 and older,File -> Save
/Save Project
for PrusaSlicer, Slic3r PE 1.42.0-alpha and newer) Images (PNG, GIF, JPEG), PDFs or text files could be drag & dropped to the issue directly, while all other files need to be zipped first (.zip, .gz)