UltiMaker uses functional, analytical and tracking cookies. Tracking cookies enhance your experience on our website and may also collect your personal data outside of Ultimaker websites. If you agree with the use of tracking cookies, click “I agree, continue browsing”. You can withdraw your consent at any time. If you do not consent with the use of tracking cookies, click “Refuse”. You can find more information about cookies on our Privacy and Cookie Policy page.
Thanks for your reply, the script function is to add M118 command after every ";LAYER:" command. Since the command context would be different due to different layer, the add g-code at every layer isn't suitable.
I've just write a python script that can modify g-code file and add functional text. To simplify the whole workflow, I'd want to turn it into a cura plugin and modify the generated g-code file at instance. Is there any resource to learn? THX