Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom G Code inserted at layer change #593

Closed
hariedo opened this issue Jan 16, 2016 · 2 comments
Closed

Custom G Code inserted at layer change #593

hariedo opened this issue Jan 16, 2016 · 2 comments
Labels
Status: Deferred We don't have time to work on this for now but intend to in the future. Type: Improvement Improvement to existing functionality.

Comments

@hariedo
Copy link

hariedo commented Jan 16, 2016

I am not sure if a plugin modifier can accurately detect the difference between a z-hop and a layer change, so I think it's best if there is a clear and obvious way to insert custom G Code at each layer change, just as you can insert custom G Code at the start and end of a print.

This is the best time to insert things like M240 - trigger a camera, for example.

@Ghostkeeper
Copy link
Collaborator

At every layer change, a comment is inserted that says: ;LAYER: <layer number>. This can be used to accurately detect layer changes, as long as CuraEngine is used as slicer.

Also, the g-code is sent to the front-end per layer, and the front-end stores it as such. The PostProcessing plug-in currently depends on this property in order to be able to insert things between layers without having to parse and split the g-code.

The PostProcessing plug-in (https://github.com/nallath/PostProcessingPlugin) is planned to be merged into Cura eventually. A script could be added to insert arbitrary g-code after every layer.

@nallath
Copy link
Member

nallath commented Jan 18, 2016

The PostProcessing plugin is an offical part of Cura (it is in the current release).

@BagelOrb BagelOrb added component: CuraEngine Type: Improvement Improvement to existing functionality. labels Jul 21, 2017
@ianpaschal ianpaschal changed the title Feature Request: custom G Code inserted at layer change Custom G Code inserted at layer change Feb 27, 2018
@ianpaschal ianpaschal added the Status: Deferred We don't have time to work on this for now but intend to in the future. label May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Deferred We don't have time to work on this for now but intend to in the future. Type: Improvement Improvement to existing functionality.
Projects
None yet
Development

No branches or pull requests

6 participants