How to inherit print settings profile from own custom profile
 
Notifications
Clear all

How to inherit print settings profile from own custom profile  

  RSS
ibd
 ibd
(@ibd)
Active Member
How to inherit print settings profile from own custom profile

Hi!

I'm trying to create two profiles:

  1. A 0.2mm layer height profile that inherits from a profile that comes with prusaslicer. It is currently called "0.20mm NORMAL @CREALITY - Copy".
  2. A 0.2mm layer height profile that inherits from "0.20mm NORMAL @CREALITY - Copy". This should have the same settings as it (and be updated automatically), but with faster print speeds. The purpose is for prints that I don't care much about quality and just want a rough output as fast as possible. I call it "0.20mm NORMAL @CREALITY - Copy FAST".

The first profile was created by simple "save profile" and choosing a different name. It works well. 

I created the second profile based off the first one in the same way. Then, I stripped out all the non-differing settings and changed the "inherits = " parameter to match the first profile. I did this because I found some information here: https://github.com/prusa3d/PrusaSlicer/issues/3566

Which says: "Would it be advisable to strip out everything from a profile that doesn't differ from the inherited profiles?" -- "yes".

However, it doesn't seem to work as I expected: Settings from the first profile are not applied to the second profile at all.

Any ideas where I might be wrong? Or does inheritance not work in that way at all for PrusaSlicer?

One thing I've noticed is that the first profile also seems to contain a complete copy of all settings. So maybe removing the non-differing settings does not work as I've understood from the GitHub issue linked above.

I am on 2.3.0 RC1, Windows 64-bit version. I have attached the two profile files in question.

Edit: Seems I'm not yet allowed to add attachments. I've uploaded the two profiles to google drive instead:

  1. https://drive.google.com/file/d/1ctwJgh6luRtnthPTqNq2vu4vRUAQmN5u/view?usp=sharing
  2. https://drive.google.com/file/d/1egh2S4MjGmV6yTEnBEjOChWvK3TEICWS/view?usp=sharing
This topic was modified 4 years ago 2 times by ibd
Posted : 24/12/2020 11:15 am
bobstro
(@bobstro)
Illustrious Member
RE: How to inherit print settings profile from own custom profile

I've got sample print profiles making heavy use of dependencies here that might be useful as a starting point.

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 : 24/12/2020 5:39 pm
bobstro
(@bobstro)
Illustrious Member
RE: How to inherit print settings profile from own custom profile

I'm starting a 2nd post to dodge the short edit timeout. I see what's wrong in your files. You have saved them as configs. These contain printer, print, and filament settings in one file. Think of it as a snapshot of all of your current settings. What you need to use inheritance is a config bundle. This saves copies of all of your current profiles in one file. Think of it as a backup of all of your available settings profiles. The distinction is that each printer, print, and filament profile in a bundle starts with a header identifying the type and name. For example, here's one of my printer profiles:

[print:*MK3 Baseline (RLG 20200508)*]
 
Notice the print: prefix. There are also printer: and filament: types. When you use inherits=, it must refer to the full and exact name specified within square brackets, but not the actual square brackets. I believe you can only inherit from a profile in the same config bundle. For example, to inherit from the print profile example above, I create another print: section with the following:
inherits = *MK3 Baseline (RLG 20200508)*
If the profile name is surrounded by asterisks (*), it will be hidden in the display lists. This is a good way to set up baseline configs.
 
You can get very elaborate. Here's my modified copy of the Prusa filament profiles. You can see multiple levels of inheritance in the same config bundle.

 

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 : 24/12/2020 5:48 pm
bobstro
(@bobstro)
Illustrious Member
RE: How to inherit print settings profile from own custom profile
Posted by: @ibd

[...] Edit: Seems I'm not yet allowed to add attachments. 

For most file types, zip them up and attach the zip archive to a post or reply.

 

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 : 24/12/2020 5:52 pm
ibd
 ibd
(@ibd)
Active Member
Topic starter answered:
RE: How to inherit print settings profile from own custom profile

Thanks! I'll try your suggestion sometime soon. Unfortunately, I wasn't able to find a whole lot of info about this in the docs. I guess it's not a publicly supported feature (yet). 

Posted : 25/12/2020 11:39 am
bryanpedini
(@bryanpedini)
New Member
RE: How to inherit print settings profile from own custom profile
Posted by: @bobstro
If the profile name is surrounded by asterisks (*), it will be hidden in the display lists. This is a good way to set up baseline configs.

Any way to find (and remove) a baseline printer profile imported from config bundle, with asterisks surrounding the name, not longer needed / that needs edits?

Thanks in advance!

Posted : 30/01/2021 1:18 am
bobstro
(@bobstro)
Illustrious Member
RE: How to inherit print settings profile from own custom profile
Posted by: @b-pedini

Any way to find (and remove) a baseline printer profile imported from config bundle, with asterisks surrounding the name, not longer needed / that needs edits?

I'm not sure I'm following what you're trying to do here. Any profile surrounded by asterisks will be invisible to the user. It contains values that can be inherited by other profiles in the same config bundle file. If you remove a baseline profile, you have to copy the desired settings over to every other profile that needs them, so it's a lot more work to maintain. Yes, you can do it, but I certainly wouldn't.

If you import a config bundle, then export a config bundle, the exported bundle will only contain the fully-expanded profiles with all the redundant settings, so that would create what you're asking for. You could then edit down that config bundle file if you only want a few of the config profiles to share, for example.

 

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 : 30/01/2021 5:35 pm
bryanpedini
(@bryanpedini)
New Member
RE: How to inherit print settings profile from own custom profile
Posted by: @bobstro

I'm not sure I'm following what you're trying to do here. Any profile surrounded by asterisks will be invisible to the user. It contains values that can be inherited by other profiles in the same config bundle file. If you remove a baseline profile, you have to copy the desired settings over to every other profile that needs them, so it's a lot more work to maintain. Yes, you can do it, but I certainly wouldn't.

I would like to remove an imported "baseline" profile surrounded by asterisks (actually, alongside the derived profiles), to re-import them all, but with the baseline not hidden, so I can change one or two global parameters like when I'll switch to direct drive or similar.

Probably I could do so even without deleting anything, I would just like to keep the thing clean and organized...

Posted : 30/01/2021 6:04 pm
bobstro
(@bobstro)
Illustrious Member
RE: How to inherit print settings profile from own custom profile
Posted by: @b-pedini
I would like to remove an imported "baseline" profile surrounded by asterisks (actually, alongside the derived profiles), to re-import them all, but with the baseline not hidden, so I can change one or two global parameters like when I'll switch to direct drive or similar.
Oh, I see. That's easy. Just edit the profile bundle (the . ini file) and delete the asterisks around the profile name AND in the inherits= lines.
 
The problem is that it probably won't do what you want. All of the inherited settings are copied into the profiles on import. The link is broken once imported. If you change the baseline profile after importing, none of the changes propagate to the other profiles. I wish they did!
 
This means you really have to maintain your config bundle by hand with an editor. 
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 : 30/01/2021 7:06 pm
bryanpedini
(@bryanpedini)
New Member
RE: How to inherit print settings profile from own custom profile

Posted by: @bobstro

If you change the baseline profile after importing, none of the changes propagate to the other profiles. I wish they did!

This means you really have to maintain your config bundle by hand with an editor.

God.
Damn.
It.

Thanks for the info, time to issue a second FR on GH then 😆

This post was modified 4 years ago 5 times by bryanpedini
Posted : 31/01/2021 12:42 am
Sean Frisbey
(@sean-frisbey)
New Member
RE: How to inherit print settings profile from own custom profile

@bobstro, is there any chance you and I could chat more about profiles? Telegram, Google Meet or something. I'm trying to wrap my head around the inheritance stuff, but it is quite confusing to me.

Posted : 14/08/2022 2:49 am
bobstro
(@bobstro)
Illustrious Member
RE: How to inherit print settings profile from own custom profile
Posted by: @sean-frisbey

@bobstro, is there any chance you and I could chat more about profiles? Telegram, Google Meet or something. I'm trying to wrap my head around the inheritance stuff, but it is quite confusing to me.

Happy to talk, Sean. I'll PM you separately for details.

 

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 : 14/08/2022 7:25 pm
Share: