Open MnlSx opened 9 months ago
The data connected to text in Slic3r_PE_model.config
are for reconstruct stored 3d shape(e.g. in case of surface move).
You missinterpreted meaning of stored metadata in 3mf.
In my opinion: It is unwanted behavior to change 3d model imidiatelly after opening 3mf. (In general it will make more trouble than benefit)
Please, describe more your use case why one need it.
Please, describe more your use case why one need it. I think I understand the meaning of the stored metadata. My intention was to to reuse this already avalible feature for another purpose.
My use case is that I would like to print hundreds of nametags, all with different names on them. Changing the name in the .3mf metadata could easily be automated, while changing the text in prusaslicer would need to be done by hand. But such a function would also be usefull to emboss serial numbers or batch numbers in parts - something I had wished for in the past.
I get that automatically changing the 3d model after opening the file could have unwanted side effects. Maybe it would be an option to have a function in the edit menu that allows the user to update the model in regard to the metadata? I see no harm in that and it might enable advanced users to do other "tricks" by changing the 3mf file.
Of course, the cleanest solution would be to have a function in prusaslicer that accepts a list of strings and automatically embosses them to the objects. But this feels like a pretty complex new feature, that might need to much rescources to be implemented.
From my point of view: For this purpose will be better to use command line interface and add option to change text.
But this solution brings several issues, which must be solved first:
I would be open to use the command line interface for this usecase. Do you see any chance that this feature will be implemented in the near future, either in the command line interface or the gui? I would really like to use prusaslicer for this purpose, as doing it in cad brings a lot of other problems I would like to avoid.
In the near future, I don't have time span for implement it. It depends on the count of users which will need it (at the moment you are alone, but I see potential). I am open to Pull Request from your side.
Description of the bug
When text is embossed into an object with the "Emboss text" tool, the string that represents the value of the text is safed in the "Slic3r_PE_model.config" file thats part of the .3mf archive when the project is safed. This parameter can conviniently be changed outside prusaslicer in any texteditor or by custom scripts. This would be a great way to print a lot of objects with different texts embossed to them (for example lables or nametags) without having to change the text by hand in Prusaslicer which is very inconvinient. Unfortunately, Prusaslicer does not automatically updated the text that is embossed into the objext when the edited project is opened. The edited text is visible in the edit window of the emboss text tool, but is only updated to the object when changes are made to the text in this windows by hand.
Project file & How to reproduce
Steps to reproduce:
EXPECTED BEHAVIOR When a project file with embossed text is opened, The embossed text should update if the string representing this text in the Slic3r_PE_model.config has changed
Examples_Embossed_Text_Change.zip
Checklist of files included above
Version of PrusaSlicer
Version 2.7.1+win64
Operating system
Windows 10
Printer model
Prusa XL 5T, Prusa MK3S+