Author Topic: Forcing transparency from front  (Read 875 times)

September 24, 2018, 07:15:25 AM
Read 875 times

johnpfmcguire

  • Sr. Newbie

  • Offline
  • **

  • 3
I am trying to create transparency in an object such that it forces all objects behind it to defer to it.
(This is a T-shirt design project, if that helps somehow.)
This also applies to lines, even if they overlap on the object they outline.
(Confession: I don't really know the difference, on the fill tab, between "Transparency" and "A" in "RGBA", though I intuit there could be a connection here.)
Thank you!
:xf2:
  • 0.92.1.0
  • 7 Professional

September 24, 2018, 10:48:45 AM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

I'm afraid I don't know what you mean by "....such that it forces all objects behind it to defer to it."  Do you mean that you want all the objects behind the transparent object to also be transparent?  Or do you mean that you want all the objects behind it to show through?

The A, which is the alpha channel only affects the color which you have configured there (which is selected).  If you're on the Fill tab, it will only affect the fill.  If you're on  the Stroke Paint tab, it will only affect the stroke.  The Opacity slider at the bottom (possibly that translates to "transparency"?) makes everything which is selected transparent or partially transparent.

I guess I would need some more info before I can explain exactly what you need to do.  Can you share the SVG file?  Or at least show a screenshot which shows what you're doing and where you're stuck?
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

September 24, 2018, 01:03:03 PM
Reply #2

johnpfmcguire

  • Sr. Newbie

  • Offline
  • **

  • 3
Welcome to the forum!

Thank you!

I'm afraid I don't know what you mean by "....such that it forces all objects behind it to defer to it."  Do you mean that you want all the objects behind the transparent object to also be transparent?  Or do you mean that you want all the objects behind it to show through?

What I mean is that (wishfully perhaps) I would like to set a kind of transparency that makes the area of the object truly transparent and not just revealing whatever's beneath it.

The A, which is the alpha channel only affects the color which you have configured there (which is selected).  If you're on the Fill tab, it will only affect the fill.  If you're on  the Stroke Paint tab, it will only affect the stroke.  The Opacity slider at the bottom (possibly that translates to "transparency"?) makes everything which is selected transparent or partially transparent.

Aha, got it.

I guess I would need some more info before I can explain exactly what you need to do.  Can you share the SVG file?  Or at least show a screenshot which shows what you're doing and where you're stuck?

I hope this clarifies things. I want everything black to be transparent, regardless of what's behind it. So the area where it's black would become thoroughly transparent, rather than red or yellow or whatever color is behind the object in question.

Thank you again!
  • 0.92.1.0
  • 7 Professional

September 24, 2018, 02:33:06 PM
Reply #3

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Ok, I think I understand now.  You mean that yellow object might actually be a rectangle, underneath everything else?  Then transparency isn't exactly what you need.  Kind of though.

Since I can't see the whole image, I'm not positive these steps will work.  But for what I can see, and how I assume the drawing is made, they should work.  If they don't work, we'll need to see the SVG file, so we can know what kind of objects are there.

 -- if you have made any Groups, you'll need to ungroup everything
 -- if the black lines are strokes, you need to do Path menu > Stroke to Path
 -- select all the black objects and do Path menu > Combine  (hint, in case you didn't already know - hold Shift key for multiple selection)
 -- for every color that you're using, you need this combined black object, so duplicate it as many times as you need (from what I can see, that would be twice)
 -- select one color (for example, select that white object) and one of the black duplicates (select them at the same time)
 -- Path menu > Difference (that black object will disappear in this operation, that's why you need the other duplicates)
 -- repeat for all the other colors

Let us know how it goes  :)
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

September 24, 2018, 06:41:55 PM
Reply #4

johnpfmcguire

  • Sr. Newbie

  • Offline
  • **

  • 3
Yes, you nailed it perfectly. Thank you so much - I hadn't explored that outline to path trick. For reasons of this particular vector graphic, I'm not even going to bother using it on this particular project (maybe not a winning design [by me] anyhow), but for my next black T-shirt project this'll be handy af. (Before posting here I was Gimping the black out of a png of this graphic and just ticked that it was leaving some grey. You should see what this T-shirt press does wherever there's black rather than transparency, it's to cry for.) :ty1: BTW, if you ever need an awesome FULL-COLOR wash-proof T-shirt, I know a guy! This has been an amazing first experience on the forum, but I should've known in advance how warm the free software world was. Blessings!
  • 0.92.1.0
  • 7 Professional

September 24, 2018, 07:21:51 PM
Reply #5

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
I'm glad I managed to guess right on the first try.  Usually I would need to see the SVG file.  But anyway, you're welcome  :)
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann