Change the blending mode on the gradient fill within a shape layer?

I can't seem to figure out how to do this, if it is possible.  I have a shape layer with a gradient fill,  that gradient fill layer needs to be set to multiply, by default its normal.  can the be done with scripting?

Indeed it is not that easy to modify the blending mode.
The blending mode is property(1), or property("ADBE Vector Blend Mode"), of the gradient fill.
Normally the blending modes are listed in the BlendingMode object, and mutliply corresponds to BlendingMode.MULTIPLY
But it doesnt work for shape graphics: if you try myGradientFill.property(1).setValue(blendingMode.MULTIPLY); you are out of range.
The value to enter is actually the occurrence of the mode in the dropdownmenu, counting separators...
so
myGradientFill.property(1).setValue(4);
Xavier

Similar Messages

  • Deleting unused swatches change the gradient

    Hi All,
    I have tried this Javascript to remove unused swatches in a document (Indesign CS4). It did remove all the unused swatches but it changed the used gradient color into black color and still has the gradient property but couldn't change any color values for that particular gradient after running the script.
    #target indesign
    var myIndesignDoc = app.activeDocument;
    var myUnusedSwatches = myIndesignDoc.unusedSwatches;
    for (var j=myIndesignDoc.unusedSwatches.length; j > 0; j--)
      myIndesignDoc.unusedSwatches[j-1].remove();
    Please advise me where I did wrong and also please suggest the right solution for this.

    Hi Friends
    Use this script it will help ful.
    # target "Deleting unused swatches change the gradient"
    var myIndesignDoc = app.activeDocument;
    var myUnusedSwatches = myIndesignDoc.unusedSwatches;
    for (var s = myUnusedSwatches.length-1; s >= 0; s--) {
         var mySwatch = myIndesignDoc.unusedSwatches[s];
         var name = mySwatch.name;
    // alert (name);
      if (name != ""){
    mySwatch.remove();

  • Highlighting the text by changing the "character fill color" with double-spacing?

    Highlighting the text by changing the "character fill color" doesn't seem to go well with double-spacing.
    Has anyone been aware of this issue?
    Try double-spacing the text you highlighted. What's up with this?
    This is so annoying and frustrating. I've been trying to do both of them for like 2-3 hours.
    You CAN do both, of course, but if you double-space the highlighted text, it just creates this huge highlighted part (it highlights the space between the two lines!) below the actual text.
    Anyone help me pleeeeeeeease.

    In Pages v5.2.2, taking Baskerville Regular 12 pt, and double-spacing it with character fill color does produce a nasty effect. With View > Show Rulers, I looked where the lines of text lined up on the vertical scale.
    Then I changed the Spacing selector from Lines to Between. Now, just the text had the character fill color, but the line height had increased visually downward. With the between setting, line height is changed to points, and indicates 27 pt. If you adjust this value to 16 pt, the second line of double-spacing will realign with where it was before the between change, while retaining discrete line character fill color.
    Before: Spacing set to Lines, and 2.0 - Double.
    After: Spacing set to Between, and 16 pt

  • Why does applying a gradient to text turn it black, but the text accepted the gradient fill?

    This seems utterly illogical.  The text now has the gradient fill in its fill slot.  But it's black. 
    Thoughts?
    Reasoning?

    You cannot apply a gradient to individual characters, hence at the character level if you started with green type, applied a gradient, your type would turn black (no matter what the original color was) and would not show a gradient.
    You would preferably delete that fill (to keep your postscript clean), and then click on "Type No Appearance" . Thsi taeks you to the object level of Type, and apply your gradient here.

  • Changing blend mode while PS is applying a filter makes layer "invisible".

    Came across this by chance.
    I applied a D&S filter and, while PS was busy "calculating", I hit Shift-Opt-K, to set blend mode "darken".
    That did set the blens mode, but also somehow made the layer have no effect. Going back in history to before the "Change blend mode" and re-doing it worked.
    Screenshots:
    Layer has no effect:
    Stepping back, still nothing:
    On step further back in history; works as expected.
    Apply blend mode "Darken" again. Now it works:

    I was able to reproduce this in CS6 and CS5.
    Thanks for the report!

  • How to change the registration point on a shape

    Hi,
    Is there a way to change the registration point on a shape
    created in Director? For instance, I created a filled oval, and by
    default Director sets the top left corner of the surrounding square
    as the registration point. Nevertheless, I need to place that
    registration point at the center of the oval.
    Best regards.

    Hi, if you create a shape vector from director, the reg point
    is in the center of it; if you import a vector created in other
    aplication (flash), the regpoint is in the top left corner. To
    change the regpoint of an imported shape, try this:
    put your shape in the stage in x,y = 0,0 position, then, if
    your shape rect is 12,8 pixs, and if you want to move the regpoint
    to the center of it
    on preparemovie me
    member("yourshape").regpoint = point(6,4)
    end
    play and stop the movie, your shape will change the regpoint
    to 6,4
    remove the script, and that's all.
    Best regards.
    sayeg

  • How do I "lock" a pattern fill within a shape?

    I want to stop my pattern fill from shifting within its shape.  It (the pattern fill) seems to move when I send my file to another user to work on. I have tried "expand" but that, at times, changes the pattern fill entirely (lines get skinnier or fatter)! I am using CS2. Thanks.

    It shouldn't move when someone else just opens the file. But when the object is copied to a different file, the pattern will most probably move. You can prevent it from moving in the same file when you check the option "Transform pattern" in the preferences.
    Could you show an example of what's happening when you expand the pattern?

  • Changing the button fill color in Captivate 7?

    I am pretty sure that when I used Captivate 6 and I created a button, there was an option in the Properties pane to allow me to change the fill color of the button. I am using Captivate 7 now, and I no longer see this option. Under the "General" tab, it allows me to change the button type, caption, make it transparent, or allows me to see button widgets. Did they remove the ability to simply change the fill color of a button?

    I'm wondering if this is something that was maybe added in a service release. Either that or you may need to reset your preferences.
    Mine has a section titled Fill & Stroke as shown below.
    Cheers... Rick

  • How do I change the Gradient in the Artwork and Effect Text tool

    How do I change the colors used in the gradient under the Artwork and Effects Text Tool? It always comes green and blue and I dont know how to change it.

    Gradient usually picks up the foreground & background colors from the chips in the tool bar, but that is for the default gradients. Sounds like you have one of the pre-set gradients selected in the drop down list in the gradient options bar. Select the gradient tool, then look in the options bar at the top of the screen. The second item from the left, if I remember correctly, is a drop down list of various gradient possibilities. Select the top left gradient sample for the foreground to background gradient.
    Bob Warren

  • How do I change the gradient so my background colour goes from dark to light?

    I am a relative newbie to PSE. If have tried adding a gradient to my background colour but I have noticeable lines. I need it to go from dark to light from left to right.
    Can anyone help me?
    Mike

    Hi Mike
    You use the gradient tool (foreground to background color)
    e.g set colors to black/white at bottom of tool pallet
    Select gradient tool and set mode to lighten
    Click on top of your image and drag down to the bottom (holding the shift key whilst dragging ensures a vertical line)
    Then release the mouse.

  • Why can't I find the gradient editor in CS6 to change the gradient overlay color of my text?

    Its here in CS4

    Thanks, but I downloaded it today, I bought it this morning to design a logo... I've been searching google for the past 4 hours and I'm about ready to pull my hair out lol
    I keep finding people with the same problem, look
    I am using photoshop cs6 and following a web tutorial on making a business card. One step I can't figure out.
    "Apply a linear gradient layer style to the warped shape. Use #841618 for the darker color in the gradient and #e82d33 for the lighter color. Once that’s done, use the Move Tool (V) to move the shape near the bottom of the canvas."
    I am in the gradient overlay and I can pick what type of gradient and stuff. But I can not figure out how to change the lighter and darker color for the gradient overlay Maybe this tutorial is pre photoshp cs6?

  • How can I change the default fill and stroke colors for new shapes?

    As you can see in the following screen recording, after I change the stroke and fill color, all my subsequent rectangles are created respecting these new colors. But then when I delete all the rectangles, choose the rectangle shape tool once again, and start creating new rectangles, they start getting created with another color I had used some time ago (and I don't know how did it become the default color).
    http://tinypic.com/r/64jrwp/6
    So how can I change the defaults, so that the fill color is say #ddd, and the shape has no stroke at all?
    Thanks.

    When you have the shape tool selected you will see in the tool bar below - file edit etc a fill and stroke. This is where you can change the colours.
    You can keep drawing your shapes like you did in the video but then select the rectangle and change the colour from this tool bar. The reason it changes will be because you changed the colours you were using (foreground / background) that display in the left side tool bar.

  • How do I change the Background Color of a Shape in iWeb?

    I am adding a comment bubble from the Shape menu for one of my photos. Everytime I try to change the background color of the bubble I end up changing the entire background color of the Web Page.
    How do I only change the background color of the shape?
    G5   Mac OS X (10.4.4)  

    Hi Kyn,
    Perhaps you (or anyone else!) can help me with this too: is it possible to change the color of the border styles that you choose for the thumbnails on a photo page? There is no "fill" option in the Graphic pane of the inspector when I select one of them. I love some of the styles but would like to be able to match the color better to my pages. See here for an example:
    http://web.mac.com/mousie/iWeb/Site/Recount.html
    The twirly border is a little too orange for my taste.
    Thanks in advance.

  • How do I change the number formatting within a Cell Table in Microsoft Word?

    Hi, I was wondering if someone could help me out on an issue I've been having... I work for an accounting firm and we do a lot of financial statements. 
    I was wondering if we would be able to treat a cell table in Microsoft Word 2007 like I would a cell table in Microsoft Excel. Meaning, I would like to change the formatting of the numbers in the table to the "Accounting" (number) format so it
    aligns by the decimal point and use the $ signs and () for negative numbers.  We do use the link tables feature, however, most of our balancing pages just can't be done in Excel because of the way the text is written. It would be much harder to format
    the text if it were to be typed in Excel. We have also tried  creating an Excel sheet within Microsoft Word but it is the same as linking the tables... Again, a text formatting issue.  The only option is to use tables within Word but how do we change
    the number formatting to a "accounting" (number) format where the numbers would align with the decimal point and use () for the negative numbers. Is there ANY option for us to do this other than manually entering this information in using tabs?  
    If there are no options other than entering it in manually, please consider this as an option for your next software update. I believe that a LOT of people out there will be interested in this feature... My manager and I just attended a webinar on Microsoft
    Advanced Word Tips Tricks and Techniques and 75% of the attending people had this question but no answer.
    Thank you very much for your help!!!!!

    Word does not really have number formatting for table cells. You can align cell contents on the decimal point, though, by setting a so-called decimal tab stop.
    Option 1:
    - Select the cells for which you want to do this.
    - Display the ruler.
    - Click the Tab box on the left hand side of the ruler until the box contains an inverted T with a dot.
    - Click in the ruler where you want the decimal tab.
    Option 2:
    - Select the cells for which you want to do this.
    - Click the arrow in the lower right corner of the Paragraph group on the Home tab of the ribbon.
    - Click the Tabs... button in the lower left corner of the dialog.
    - Specify a tab position in the box, e.g. 1.5".
    - Select the 'Decimal' radio button under 'Alignment'.
    - Click Set.
    - Click OK.
    You will have to type the numbers as they should appear, including the $ for currency and the ( ) for negative numbers.
    Regards, Hans Vogelaar

  • How to change the answer text within the review widget of iBooks Author?

    I want to change the answer text which appears after one has finished a test within the review widget of iBooks Author, but I can't figuere out how to do that.
    I also want to sum up the result of a couple of questions as a percentage. How does that work?
    Can anybody help?
    Thanks
    Reinhard

    Notice the answers inside the widget, each with a circle to the left - tap on one of those, which will then appear green with a checkmark in the center to indicate the correct choice.

Maybe you are looking for

  • Sync *part of* address book with google contacts

    Within the Address Book I've seen it's possible to share contacts with a googlemail account. However, is it possible to share part of an address book (say, a group or a smart group)? I'd like to share some contacts with colleagues at work but I don't

  • JMF Can't play file with cyrillic characters

    Fairly self explanetory - JMF fails to load files or directories with cyrillic characters. It throws the following exception: javax.media.NoPlayerException: Cannot find a Player for :file:///C:\Documents and Settings\drdanielfc\Desktop\DATscape\The M

  • Calender overriding default alert settings in iOS

    Here's the problem: when I do an All Day Event in Calendar, something overrides my default Alert settings and sets and Alert for 9:00am the day before the All Day Event. I only want Alerts set on Events I choose, so I'm assuming that's why I have my

  • Inter plan and back to domestic do not work

    I was in Brussels and bought an international plan.  It never worked.  Now that I am back in the US, my domestic plan doesn't work any more.  Any clue?  It shows an AT

  • RMI Use in the real world

    I present an RMI module in the Java course I teach. I know enough about RMI to be able to talk about it, and write a simple classroom example, but I have never done RMI in the real world. Can anyone offer an example of what kind of applications are b