Notifications
Clear all

Help with dependancies  

  RSS
towlerg
(@towlerg)
Noble Member
Help with dependancies

I have a working PS setup. I have a Sovol SV01 and Octoprint. In Printer Settings/Notes I have PRINTER_VENDOR_SOVOL and PRINTER_MODEL_SV01. In the various filaments profiles Compatible printer conditions I have printer_model!="SV01". I don't understand why this works, in most languages ! signifies negation. So I read the compatible printer conditions as any printer other than SV01, which clearly is not the case.

Posted : 06/12/2022 3:29 pm
Neophyl
(@neophyl)
Illustrious Member
RE: Help with dependancies

Well compare what is in a prusa mk3 profile setup.  Under the Mk3 in the notes section is the following

PRINTER_VENDOR_PRUSA3D
PRINTER_MODEL_MK3

In the dependencies section of a print profile there is
printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK3.*/ and nozzle_diameter[0]==0.4

So it seems that it is comparing against the .*PRINTER_MODEL_MK3.* key, the WHOLE key. Actually it looks like its looks for both keys due to the and in there as well as a nozzle of 0.4.  

I suspect that as SV01 does NOT equal PRINTER_MODEL_SV01 that means it does not match and so works.  I'd sort of expect if you had printer_model!=PRINTER_MODEL_SV01 that it would match and so wouldnt show up.  Also note the prusa version doesnt have items in quotation marks either.  

These sorts of things are often quite picky and so some experimentation is required to figure out the exact requirements.  Unless you go diving into the codebase itself.  

Posted : 06/12/2022 4:08 pm
towlerg
(@towlerg)
Noble Member
Topic starter answered:
RE: Help with dependancies

Seems like your right,I hadn't noticed before but my SV01 profiles are also displayed when Mk3 is selected. I probably should look into this. Pity there's no guidance from Prusa, given how often this feature trips us newbs up.

Posted : 07/12/2022 3:53 pm
Share: