Thanks DaHai8!
So it sounds like there isn't any particular functionality built into cura for the plugins, and I'll just be parsing the gcode with standard python string parsing tools? I think I will take a closer look at the example scripts, thank you.
This should be doable I suppose, even if my solution isn't very robust.
Thanks!
I got my feet wet writing Cura Post-Processing Plugins (that's what you'd want) just by examining the code and hacking at it until I got what I wanted.
All the Post Processing Scripts for Cura 2.3 can be found here:
C:\Program Files\Cura 2.3\plugins\PostProcessingPlugin\scripts
There's not a lot to them:
A Class Name that matches the Filename that must contain:
- def __init__(self): init the class
- def getSettingDataString(self): Get the data from the dialogbox
- def execute(self, data): do the modifications to the g-code pass in the data structure
The python file must also import Script at the top:
from ..Script import Script
That's the basics, its just wack and hack from there!
Recommended Posts
DaHai8 74
I got my feet wet writing Cura Post-Processing Plugins (that's what you'd want) just by examining the code and hacking at it until I got what I wanted.
All the Post Processing Scripts for Cura 2.3 can be found here:
C:\Program Files\Cura 2.3\plugins\PostProcessingPlugin\scripts
There's not a lot to them:
A Class Name that matches the Filename that must contain:
The python file must also import Script at the top:
That's the basics, its just wack and hack from there!
Link to post
Share on other sites