Jump to content

Daniel26

Dormant
  • Posts

    34
  • Joined

  • Last visited

Personal Information

  • 3D printer
    Other 3D printer

Recent Profile Visitors

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

Daniel26's Achievements

0

Reputation

  1. Hello, I've wrote a plugin for Cura 4.x. This worked well. Now, with Cure 5.0 I have to update my plugin. The only thing I have to change is the sdk version in the plugins.json. So I set "supported_sdk_versions": ["7.0.0", "8.0.0"]" there, set the "Version" one up and uploaded the zip. But then, I only get as eror message "null(null)" and the package is still in the draft status? Can anybody tell me, where the error is? What did I wrong? Regards Daniel
  2. Hi, I developed a plugin for cura 4. Now, with Cura5, my plugin is gone. Where can I find my plugin to update it? Regards Daniel
  3. 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
  4. 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.....
  5. 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
  6. 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 "ChituCodeWriter.ChituCodeWriter" not in sys.modules: return {} return { "mesh_writer": { "output": [ { "mime_type": "text/chitu-g-code", "mode": MeshWriter.OutputMode.TextMode, "extension": "gcode", "description": i18n_catalog.i18nc("@item:inlistbox", "Chitu gcode") } ] } } def register(app): Logger.log("w", "--- register ChituCodeWriter ---") if "ChituCodeWriter.ChituCodeWriter" not in sys.modules: return {} else: return { "mesh_writer": ChituCodeWriter.ChituCodeWriter() } Nothing in the logs. I also have no such mime type in the save-as-dialog. Frustrating... Regards Daniel
  7. Ok, thanks. Will try the logger. The file are in a seprate folder in the plugins dir.
  8. { "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.
  9. 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 {} return { "mesh_writer": { "output": [ { "mime_type": "text/chitu-g-code", "mode": MeshWriter.OutputMode.TextMode, "extension": "gcode", "description": i18n_catalog.i18nc("@item:inlistbox", "Chitu gcode") } ] } } def register(app): if "ChituCodeWriter.ChituCodeWriter" not in sys.modules: return {} else: print("fregistering chitu_mods") return { "mesh_writer": ChituCodeWriter.ChituCodeWriter() } Cura.log is attached. Thanks for your time cura.log
  10. 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?
  11. No Prob, thanks. I will try to figure it out. Sadly, there is no documentation about that.
  12. 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.
  13. 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.
  14. 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.
  15. Hello, filename is "tronxy_base_extruder_0.def.json". But it also failes if I set machine to "tronxy_base_extruder_0" Regards Daniel
×
×
  • Create New...