Skip to content
This repository has been archived by the owner on Jan 17, 2018. It is now read-only.

automaticaly add a PostProcessing Script #46

Open
spilz87 opened this issue May 3, 2017 · 16 comments
Open

automaticaly add a PostProcessing Script #46

spilz87 opened this issue May 3, 2017 · 16 comments

Comments

@spilz87
Copy link

spilz87 commented May 3, 2017

hello,

it's not really an issue, but I don't find where to post my request.
I wrote a postprocessing script which works well.
I want to use it all the time, but I forget sometimes to load it when I open CURA.

How can I modify PostPressingPlugin.py to automatically load my script ?

my script for exemple is
name : PH1
key : PH2

I tryed to add at the end off def init(self,parent = None):
...
self._script_list.append(self._loaded_scripts"PH2")

but it does not work :(

thanks for your help

regards

@spilz87 spilz87 changed the title automaically add a PostProcessing Script automaticaly add a PostProcessing Script May 3, 2017
@Ghostkeeper
Copy link
Collaborator

But when you add some post-processing scripts by default, what parameters will be supplied to the post-processing script?

I suppose it's possible to add a list of scripts to the preferences menu of Cura, to be executed for every slice.

@spilz87
Copy link
Author

spilz87 commented May 5, 2017

my post-processing scripts has default value which are right for my printer.
the only thing is I often forget to just seect it in pos-pressing menu :(

@Ghostkeeper
Copy link
Collaborator

What I meant is, if you were to add the new search-and-replace post-processing script for instance to fix some problem with your printer like removing all "G10" from the g-code, then you want to add that to every print you make. But you'll have to set the parameters of the script such that G10 is always removed. Otherwise it does nothing.

The only way I see working is to allow adding post-processing scripts in the machine settings action as well and save those along with the printer somehow.

@spilz87
Copy link
Author

spilz87 commented May 10, 2017

and how do you do that ?

@Ghostkeeper
Copy link
Collaborator

Well you can't, currently. There is no mechanism to save the active post-processing scripts at the moment.

@spilz87
Copy link
Author

spilz87 commented May 12, 2017

That s why I'm thinking to modify the posprocessingpluging.py to automatically load a post processing script

@BagelOrb
Copy link
Collaborator

The postprocessing settings should be saved in the config file so that what you start up cura the postprocessing scripts are loaded from that file with the setting values which were saved.

Would that be the correct way to do it?

@nallath
Copy link
Owner

nallath commented May 12, 2017

Eh, it should be done in such a way that the project loading also takes it into account. The result would be a list of postProcessing scripts with key value pairs.

@spilz87
Copy link
Author

spilz87 commented May 12, 2017

actually I'm not looking for the correct way to do it, I'm just looking for a way to do it ^^

a quick way to do it, I think, is to "active the postprocessing script after the list is created by postprocessingpluging.py

but I don't know how to do it in python :(

@Ghostkeeper
Copy link
Collaborator

Ghostkeeper commented May 15, 2017

I'd say that it's most logical to save it in the global stack file, or at least link it to the global stack. Then it would also get saved along with project loading.

@BagelOrb
Copy link
Collaborator

BagelOrb commented May 15, 2017 via email

@Ghostkeeper
Copy link
Collaborator

This feature request was just rejected by our project manager for being inactive for 3 months.

@spilz87
Copy link
Author

spilz87 commented Aug 8, 2017

actually I still need it, but I don't find a way to do it :(

@spilz87
Copy link
Author

spilz87 commented Aug 8, 2017

For me it would be better in profile file than in project

@Drayson80
Copy link

hmmm... it depends on the script...
if it is a modification usually valid for one situation/project/model, than it should be stpored per project,
but
if it is a general modification like the "show layer" script which (in my case) shall be applied on profie base in every single gcode exported...

@spilz87
Copy link
Author

spilz87 commented Dec 4, 2017

Actually it is also my case : it is a general modification

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants