Jump to content
Ultimaker Community of 3D Printing Experts

Daniel26

Member
  • Content Count

    32
  • Joined

  • Last visited

Community Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I answered that. I didn't realise that there is another plugin folder. But I think its a bug in Cura. All the Plugins before the Console Logger are also not Logged. Perhaps the logging starts with the ConsoleLoggerPlugin? The Renaming this Plugin so it is loaded at first would make sense. But I found another bug that crashes Cura completely. Thanks for your patience. Regards Daniel
  2. Ok, found the source of my problems... Cura registers the plugins in alphabetical order. The log starts at "C", the amf-reader was not listed in the log, but it was loaded. So I renamed my plugin-folder to something starting with "Z". And then I saw errors in the logile. I had some missing imports. Thats all. After I corrected that the plugin was loaded fine. My plugin simply was loaded before the logging starts.....
  3. I start cura simply from windows with a double click on the icons. What else do you need? I will try to answer the questions. The source of the plugin is here: https://github.com/Spanni26/Cura/tree/master/plugins/ChituWriter
  4. Ok, tried it now with the logger, but still no message in the logs: #Copyright (c) 2018 Ultimaker B.V. #Cura is released under the terms of the LGPLv3 or higher. import sys from UM.Logger import Logger try: from . import ChituCodeWriter except ImportError: Logger.log("w", "Could not import ChituCodeWriter") from UM.i18n import i18nCatalog #To translate the file format description. from UM.Mesh.MeshWriter import MeshWriter #For the binary mode flag. i18n_catalog = i18nCatalog("cura") def getMetaData(): Logger.log("w", "--- get metadata of ChituCodeWriter ---") if
  5. Ok, thanks. Will try the logger. The file are in a seprate folder in the plugins dir.
  6. { "name": "Chitu code Writer", "author": "Spanni26", "version": "1.0.0", "description": "Adds chitu code to gcode", "api": "7.1", "i18n-catalog": "cura" } Yes, see above.
  7. Here the __init__.py: #Copyright (c) 2018 Ultimaker B.V. #Cura is released under the terms of the LGPLv3 or higher. import sys from UM.Logger import Logger try: from . import ChituCodeWriter except ImportError: Logger.log("w", "Could not import ChituCodeWriter") from UM.i18n import i18nCatalog #To translate the file format description. from UM.Mesh.MeshWriter import MeshWriter #For the binary mode flag. i18n_catalog = i18nCatalog("cura") def getMetaData(): print("Loading chitu_mods metadata") if "ChituCodeWriter.ChituCodeWriter" not in sys.modules: return {}
  8. Hmmm, my Plugin seems not to be registered. I put a simple "print" to the register and the getMetaData function, but I can't find the output in any log. Any idea?
  9. No Prob, thanks. I will try to figure it out. Sadly, there is no documentation about that.
  10. So, If I understand correctly: The file generated from ufp is "piped thru" the Script that creates the gcode? So with the order of the fileformats I can control the order the plugins are used? Nope. There are only additional M-Commands included in the gcode-file. So I only wan't one file.
  11. To Use the UFPWriter I have to "save as" and select "UFP"? If yes, this is not what I wan't. If I add a Tronxy printer the gcode simply has also "run thru" my plugin ans should be saved as gcode.
  12. It adds e.g. a Screenshot to the gcode so the part is shown on the touchscreen of the printer. The timestamps also have a special format. I tried to submit a post process script, but they won't include it in the cura release. They advised me to write a mesh writer plugin and to submit it to the plugin database.
  13. Hello, filename is "tronxy_base_extruder_0.def.json". But it also failes if I set machine to "tronxy_base_extruder_0" Regards Daniel
  14. Hello, I try to implement my own extruder definition. But the test at github claims about a machine_id, which cannot be found. { "version": 2, "name": "Extruder 1", "inherits": "fdmextruder", "metadata": { "machine": "tronxy_base_extruder", "position": "0" }, "overrides": { "extruder_nr": { "default_value": 0 }, "machine_nozzle_size": { "default_value": 0.4 }, "material_diameter": { "default_value": 2.75 } } } Can anybody explain me this? Regards Daniel
  15. Ok. Thats for testing. What I wan't: if printer is a tronxy, the g-code should be created, that g-code hat to be modified by my plugin. How can I do that? Is that done by "file_formats": "text/x-gcode;text/chitu-g-code" in the printers definition? Sorry for that stupid questions, but I can't find any info about "Mesh_writer" Plugins. Regards Daniel
×
×
  • Create New...