Notifications
Clear all

Object-variable K Factor in Prusaslicer  

  RSS
DaJMasta
(@dajmasta)
Trusted Member
Object-variable K Factor in Prusaslicer

I want to do some experimentation with K factor (Linear Advance setting) to find out what's best for some different material types, is it possible to assign a K factor to an individual part in prusaslicer?  Alternatively, is it possible to append a small snippet of gcode to an individual object to adjust individual parameters for a direct comparison (i.e. K30 on one, K40 on another, K20 on a third, that kind of thing)?

 

 

If there isn't a way to already do it, it could be a useful addition - saves a lot of time and makes for a more consistent comparison if the adjustments can be tested on the same plate.

Posted : 10/09/2019 9:50 pm
Bunny Science
(@bunny-science)
Noble Member
RE: Object-variable K Factor in Prusaslicer

Not exactly what you ask, but won't the Marlin Linear Advance test code generator do what you need? You can set the LA increments and material temperatures. The resultant test patterns are easy to read and compare.

http://marlinfw.org/tools/lin_advance/k-factor.html

Posted : 10/09/2019 10:04 pm
bobstro
(@bobstro)
Illustrious Member
RE: Object-variable K Factor in Prusaslicer

We had a lengthy discussion about this a few months ago. Unfortunately, the images don't appear to have survived the forum transition. You can view mine here

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 : 10/09/2019 10:21 pm
bobstro
(@bobstro)
Illustrious Member
RE: Object-variable K Factor in Prusaslicer

Follow-up: The downside to the approach I used is that is a long print, close to 3 hours. I'd hoped to keep it to an hour at most for quick filament profiling, but alas, Linear Advance only matters at higher speeds so parts needto be a minimum size to show any effect. 

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 : 10/09/2019 10:27 pm
DaJMasta
(@dajmasta)
Trusted Member
Topic starter answered:
RE: Object-variable K Factor in Prusaslicer

Ah, searching K factor doesn't yield many useful results since this search seems to allow single letter searches!

I didn't realize the gcode if statements could be that flexible, and that seems to be a good way to do it.  You could probably even have a similar expression with X position and then just arrange a series of objects horizontally on the plate and get the same results.

The marlin calculator was something I didn't even know existed (haven't looked into the firmware much on my own), but would likely test things well too, albeit with more inputs to match the printer and filament settings I already have.

For my purposes, I'm trying to find what works best for the PC I have, since the base 30 warps a fair bit and the recommended 50 performs similarly.  I had been testing a number of values on parts, but as individual prints and sometime with slightly differing other settings as I tried to tweak, and getting all the k factor adjustments together in a single print seems to be ideal so I can go on and test other variables in a more controlled manner.

 

I do still think it would be a neat addition to prusaslicer to have an addition to the right click menu on an object -> add settings menu that would just let you add custom gcode for use specifically on the object.  Since the MMU can switch extruders between objects the slicer should already be able to manage the differences and it could be handy for this sort of comparison testing.

Posted : 10/09/2019 10:50 pm
bobstro
(@bobstro)
Illustrious Member
RE: Object-variable K Factor in Prusaslicer
Posted by: DaJMasta

[...] I do still think it would be a neat addition to prusaslicer to have an addition to the right click menu on an object -> add settings menu that would just let you add custom gcode for use specifically on the object.  Since the MMU can switch extruders between objects the slicer should already be able to manage the differences and it could be handy for this sort of comparison testing.

I think the closest you can currently get to this is with a post-processing script and using the Complete individual objects option along with Label objects when generating multi-part gcode. With that set, each part is identified in the gcode with something like:

; printing object Stringing Mini Test v2.stl id:0 copy 0

You can search on those strings and insert gcode to modify the K value.

I adapted a multi-extruder setup to do retraction tests, but there's no native way that I'm aware of to get it to insert gcode per-extruder. I've used post-processing scripts without problem. I may give this a look when I clear a few other projects out of my queue of stuff to play with.

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 : 12/09/2019 11:46 pm
Share: