Inkscape.org
Beyond the Basics Moving object from layer with lower opacity to layer with higher opacity will sometimes apply prior opacity to object
  1. #1
    Jacob Zorn Jacob Zorn @CobaltGemini

    Okay, this is something that has bugged me about Inkscape for years, since I started using it, and no matter how much I try to look it up, I can't find anything about it. So, I am going to make a post for it myself.

    Basically, I create a layer specifically to help me measure everything out, and I give this layer an opacity of 50%, to help me see my scanned-in sketch below it. Oftentimes, I'll copy or duplicate objects from this Assist layer to my main Outline layer, which is kept at 100% opacity.

    The issue: About half, perhaps most of the time, when I move an object from a layer of 50% opacity to a layer of 100% opacity, the object's own opacity will be changed to keep the prior layer's opacity, making it 50% (and that's just an example). It doesn't matter if I'm using cut / copy and paste, or the "Move Selection to Layer..." function. Heck, it'll happen even if I'm moving the object between layers that have the same opacity, so long as the layer the object originated from has an opacity lower than 100%.

    And sometimes it doesn't happen, and the object will keep its original opacity (usually if I already fixed the object's opacity). In fact, if I move a large group of objects at once from a lower opacity layer to a different layer, most of the objects will take on the prior layer's opacity, but one or a few (pretty much less than a third) of the objects will remain at their original opacity once moved.

    Obviously, I don't want my object's opacity to change just because I'm moving them between layers, but it seems nothing has changed about this. I'm assuming it's a bug, but if there is an option for this in the Preferences, I obviously haven't found it (again, I've attempted to look this issue up before, and found nothing).

    Can something be done about this?

  2. #2
    Jacob Zorn Jacob Zorn @CobaltGemini

    Okay, I actually have more. After posting this, I went back to work on my current project. I had several items grouped together on my Assist layer with 50% opacity. I wanted to separate a few objects from this group, so I used the "Pop Selected Objects out of Group" function, and once the objects were out of the group, wouldn't you know it, they were at 50% opacity, when they were at 100% before leaving the group. Separating objects from the group also applied the layer's opacity to those objects, even though they were still on the same layer!

    Just wanted to make sure this additional information was provided.

  3. #3
    Paddy_CAD Paddy_CAD @Paddy_CAD
    *

    Screen display styles are the combined result of fill and stroke colours, object style attributes, group and subgroup styles, layer and sublayer styles. When you copy or move objects between groups and layers, Inkscape takes this compound style and duplicates it at the destination, which is then combined with all of the parent group and layer styles. Presumably this is preferred by most illustrators.

    I agree this behaviour can be frustrating but I don't see an easy way to change it. Inkscape doesn't know which (if any) of these inherited styles you want to retain at the destination. My workaround is to open the XML Editor [shift+ctrl+x] and delete the style attribute so that the moved/pasted object inherits its style from the destination layer or group.

    Perhaps this merits a feature request for a [Paste Without Style] option.

  4. #4
    Tyler Durden Tyler Durden @TylerDurden

    Is this your report? https://gitlab.com/inkscape/inbox/-/issues/8937

    If not, please add your comments.

     

  5. #5
    Tyler Durden Tyler Durden @TylerDurden

    FYI you can copy/paste objects with verbatim style info, but that does not seem to affect move-to operations.

     

  6. #6
    Jacob Zorn Jacob Zorn @CobaltGemini

    To Tyler Durden, I can't seem to find that Clipboard option in my Preferences, despite your screenshot showcasing where it is (i.e. it's not between the Markers and Cleanup options).

    Perhaps it's not available in my current version of Inkscape, although I am using version 1.2.2, which I believe is the most current version, so maybe it was removed. Either that, or you got it from an extension that I don't have

  7. #7
    Tyler Durden Tyler Durden @TylerDurden

    This is 1.3 release version. (latest and truly greatest)

     

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Moving object from layer with lower opacity to layer with higher opacity will sometimes apply prior opacity to object