Inkscape.org
Using Inkscape with Cutters/Plotters Reset all stroke opacity for all objects
  1. #1
    ISKIWI ISKIWI @ISKIWI

    Hello,

    When you copy an object with opacity the newly generated object has a different opacity. Sometimes if the opacity change is small it can be difficult to notice the difference by eye. In addition all of the opacity readouts tend  show 100%. So on first inspection it appears as if nothing is wrong. However laser cutters and plotters require exact colours to function. If I have a file with where all of the objects/paths have been copied, is there a way to reset the opacity of all objects?

    When I select the copied path all the opacity and alpha channels are at 100%.

     

    I do however see in the objects dialog that the opacity is wrong:

    When I change the opacity to 100% it makes the line darker.

    However changing the opacity does not fix the problem entirely. Trotec job control (the application for our laser) doesn't recognise all the lines.

     

     

    Could somebody tell me what I am doing wrong? Is there a way to easily reset the opacity of all lines at all levels? 

    I have attached the SVG files before (hand_O75) and after (hand_O100) adjusting the opacity in the objects dialogue.

    Thanks for your help!

    Hand O100
    Hand O75
  2. #2
    inklinea inklinea @inklinea⛰️

    Edit>Select All In Layers

    Go to the opacity setting next to fill and stroke swatches on the bottom left of screen. Click minus to make sure everything is affected, then click plus and hold until it reaches 100.

    Seems to work for me in Inkscape 1.0.1 Windows.

  3. #3
    Ellen Wasbø Ellen Wasbø @EllenWasbo

    I think the problem here is that there is a lot of subgroups before you find the path and the opacity is set on a group, not the path itself. Also there is a difference in which subgroup level ontain the 75% opacity setting. When I tried removing all the subgroups in the O75 file by ungrouping several times (Ctrl+Shift+G) I ended up with all paths having opacity 75% defined in the path settings. Do you need all those subgroups for something?

    There is an extension called Deep ungroup in the Arrange menu, but I don't think it is updated for Inkscape v1.0+. I get error messages.

  4. #4
    Ellen Wasbø Ellen Wasbø @EllenWasbo

    If the ungrouping solve your problem I had another quicker idea how to quickly ungroup all subgroups:

    Ctrl + Alt +A to select all (including all layers)

    Then run the extension: Modify Path > To absolute

     

  5. #5
    ISKIWI ISKIWI @ISKIWI

    Thanks for your feedback!

    I tried @inklineas approach. "Select All in All layers" does select every path, but the opacity is only updated for one path.

    I tried @EllenWasbos approach but couldn't find the absolute paths extension. Is it something I have to add? Is it an extension only available in the latest version? I have Inkscape 0.92.4 

    I realise that my file is a little unusual given all the sub groups. I think this occurred because I once saved the file as a PDF and then re-saved it as an SVG. PDFs often generate weird groupings. 

     

    I managed to cut the file in the end by doing the following: I manually edited the groupings with the wrong opacity in the objects dialog. This was not too tedious because each grouping with a little arc symbol were the layers with a low opacity. I then exported and re-imported the file as a DXF. Doing these steps produced a file with vectors that the laser understood.

    I think the best thing to do is  to avoid copying objects which are transparent. I would also have made my life a lot easier by not saving the file as a PDF and creating so many subgroups.

    Thank you everyone for your help!

  6. #6
    Tyler Durden Tyler Durden @TylerDurden
    *

    IIRC, the updated Deep Ungroup extension can be downloaded.https://gitlab.com/inkscape/extensions/

     

    EDIT: the extension is still buggy.https://gitlab.com/inkscape/extensions/-/issues/184

  7. #7
    Ellen Wasbø Ellen Wasbø @EllenWasbo

    And for ISKIWI, still on version 0.92, I guess this will not help as the update is for version 1.0+.

    Seems like "To absolute" too is an extension that came with version 1.0+.

    Highly recommend to upgrade :)

  8. #8
    Tyler Durden Tyler Durden @TylerDurden

    Deep ungroup for <1.0 attached.