Extracting individual ini files or referencing settings from master PrusaResearch.ini?
 
Notifications
Clear all

Extracting individual ini files or referencing settings from master PrusaResearch.ini?  

  RSS
denverh
(@denverh)
New Member
Extracting individual ini files or referencing settings from master PrusaResearch.ini?

I would like to either reference the desired print/printer/filament settings in the master ini file (PrusaResearch.ini) from a local ini file, or extract all the settings into individual files like they were before PS version 1.40.  The reason I want to do this is because I use make to manage print projects, so I'm using PS in command-line mode.  With the older versions of PS I could use a command with --load instructions for the chosen individual master print, printer, and filament files, along with the local ini file that contains just whatever I want to change from the default settings.  The newer versions of the slicer, with a consolidated master ini file, have made that a little more difficult.

Either approach with work, but so far I've been unable to get a local ini file to reference any settings in the global ini file.  So I'm at the point of writing something to extract individual files, but thought I would ask here first, in case someone else has already solved this.

 

Posted : 12/02/2021 6:53 pm
bobstro
(@bobstro)
Illustrious Member
RE: Extracting individual ini files or referencing settings from master PrusaResearch.ini?
Posted by: @denverh

[...]  The reason I want to do this is because I use make to manage print projects, so I'm using PS in command-line mode.  [...] I've been unable to get a local ini file to reference any settings in the global ini file.  So I'm at the point of writing something to extract individual files, but thought I would ask here first, in case someone else has already solved this.

I am not aware of any sort of INCLUDE functionality that allows one config file to call in another. In all my experimentation, even inheritance is limited to a single .ini file. Like you, I've got a manual build process that loads multiple individual configuration files. I just created these by hand.

I have written a very simple python program that will pull individual profiles out of config bundle files, but it needs a lot of work to be useful for much more than that.

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Posted : 13/02/2021 6:36 pm
denverh
(@denverh)
New Member
Topic starter answered:
RE: Extracting individual ini files or referencing settings from master PrusaResearch.ini?

@bobstro

Ok, I knew the limit on inherits, but was hoping there was some other mechanism that would bring in elements from PrusaResearch.ini.  There seem to be hints that it might be possible, like the "compatible_printers_condition", but I haven't found any way to get that to work.

I did find a python script that was supposed to extract print/printer/filament settings if you give it the name of a section, like "print" and "0.05mm ULTRADETAIL".  It's not too hard to use tools like grep to get a list of names to pass to the script, but it seems to return a lot of errors.  The files that are successfully extracted seem ok, but a lot are missing.  I was going to write something myself, but I don't have an adequate understanding of how all the variations in that file are supposed to work.

 

Posted : 15/02/2021 4:36 pm
Share: