From e93608134fc5403765b2b72402624ed8e06188f0 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Fri, 17 Jul 2020 17:33:27 -0400 Subject: [PATCH] Move default toggle to tab change. README update. --- README.md | 12 +- octoprint_cancelobject/__init__.pyc | Bin 0 -> 19984 bytes .../static/js/cancelobject.js | 563 +++++++++--------- .../templates/cancelobject_settings.jinja2 | 2 +- 4 files changed, 293 insertions(+), 284 deletions(-) create mode 100644 octoprint_cancelobject/__init__.pyc diff --git a/README.md b/README.md index 968be1c..eaf00f9 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ See below for instructions for specific slicers. ### New version 0.4.2, 07/2020 * Remove case sensitivity for `@Object` tags. * Improvements to absolute extrusion tracking. -* Read object information from SuperSlicer object comments to create `@Objectinfo` tags. This includes object centers so these no longer have to be calculated from extrusion moves. -* `; stop printing object` comments now generate `@Objectstop` tags which should improve compatibility with extruder wipes +* Read object information from SuperSlicer object comments to create `@Objectinfo` tags. This includes object centers so these no longer have to be calculated from extrusion moves. Special note: as of this moment cloned objects will not give unique positions. +* `; stop printing object` comments now generate `@Objectstop` tags which should improve compatibility with extruder wipes in PrusaSlicer/SuperSlicer ### New version 0.3.0, 02/26/2019 * Gcodeviewer integration. Objects are tagged wtih an orange dot in the Gcodeviewer and can be cancelled directly. @@ -29,9 +29,9 @@ See below for instructions for specific slicers. * Please note that the way that Cura does supports means that ALL supports are placed into an object called `NONMESH`. Cancelling an object will not cancel its supports. * Do not use stl files that have non-ASCII characters. This will confuse all current versions of Marlin. * Is is a good idea to add `;MESH:ENDGCODE` at the start of your ending gcode script. -### PrusaSlicer/Slic3r PE (1.42 alpha and future versions) +### PrusaSlicer/SuperSlicer * Enable `Label objects` in the Output section -* Object names can be modified in the object list in the right panel. Note, this only works for objects that are imported independently, not on copies of objects. +* Object names can be modified in the object list in the right panel. Note, this only works for objects that are imported independently, not on copies/clones of objects. * For the end custom GCODE, include at the start: `; printing object ENDGCODE` ### Slic3r * Use the current development build snapshot: https://dl.slic3r.org/dev/ @@ -45,9 +45,9 @@ See below for instructions for specific slicers. ## Other notes * If you upload files directly to your octoprint instance, direct them to the `watched` directory and not the `upload` directory. This will make sure that the plugin processes your gocde and substitutes the `@Object` tag it uses to identify -* This plugin can only be used when streaming files via USB (no SD card support) +* This plugin can only be used when streaming files via USB (no SD card support). If you are looking for SD card support, look into Marlin or RepRap firmware M486 commands. * It is designed for use with Marlin and Marlin-flavored firmwares. The behaviour with other firmwares is unknown. -* Gcodeviewer integration requires that the object has to have had some printing moves before its coordinates are known. Use the `Refresh Objects` button to update. +* Gcodeviewer integration requires that the object has to have had some printing moves before its coordinates are known. Use the `Refresh Objects` button to update. The exception to this is SuperSlicer which includes object information comments in the gcode that include object centers. * Some slicers will place first layer extras (brim, raft, etc.) as part of an object. If this throws off the position of the objects in the gcodeviewer you can use the `Reset Objects` button. ## Setup diff --git a/octoprint_cancelobject/__init__.pyc b/octoprint_cancelobject/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3b7c14dee360927f1b5631a768dd14fca566a4d5 GIT binary patch literal 19984 zcmc&+TWlQHc|Lm)$)!kB^1Xza)eElZ@VxQZhyE@g2gJCRq;P_`t-@?y0+q?X*9 zW`;6pOO0E(DPkb)Lt3CsFKJTLK-vUJ^H8*XY=Pb$QaEXABR3Q+`cO12(4-Fq0yO=; z@1NOS$+F){k=(;`pL726-_HO4v$-FS4nO+eTgp|J{0!p%?5uN9C*xcVe;L>l#_NkX0M=uU8v76n(<}^Rz7Dm$is9P9K z^IP1)mNY-+7RHp%xyHC_ZgmS=ZLN9N*yfts-NJS&Z*q+R*WBS2cAz}qf=zCDr(53T zmM7d|#?=PhYtG$r?$W|;R~vGR*lnR(HR)=@8gZXn-jinbrkVGpnfIreeQCyXivzB< zxjWJQu7*uL;A+^;2V89n8y5Bxu=7)6fPS4PF$L(mn8nJKsNGnNgL1vuX@_yiT1L=P zT@Aya6_;0|Ahg;6)E2L!F0%4C%BSm%U@nN_daDxG+pQ?xg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cqj(X$5Ig4)jgQ0BNvW zvf^GXJK9?>pFzEtX|x{s1g?cyQPI}M6#_O5MSL1-ueU51?Dkd5!yGBtKw$y?FL9dB za)#|l&f;C5XDyn$9a{9LzEsJlyz{@#Zj>nV{6d`7js^4hf5d94vnLsuZk5`@`6OgF zsp3t2UdVK^Q%~x)p{__jee&``GNq7^{ktfYe8UHC2;DmS;v-NEq8)I2|BJSJfO124 r>71F)!XmnPu-Uw0J8rFk5$`D literal 0 HcmV?d00001 diff --git a/octoprint_cancelobject/static/js/cancelobject.js b/octoprint_cancelobject/static/js/cancelobject.js index 68fe6be..b1b50ea 100644 --- a/octoprint_cancelobject/static/js/cancelobject.js +++ b/octoprint_cancelobject/static/js/cancelobject.js @@ -4,7 +4,7 @@ * Author: Paul Paukstelis * License: AGPLv3 */ -$(function() { +$(function () { var $cancelOverlay = $('