HELP:  Script to find: blending mode: Multiply

Hi all,
Trying to find of write a script that searches an Indesign CS4 document for anything set to blending mode multiply.
Cant find anything on google..... Please help
Thank you in advance
Shot8

Hi.
try code below.
I think it is unnecessary to select the objects
var graphics = app.activeWindow.activePage.allGraphics;
app.select(graphics); //=>  undefined. because select method return undefined
// apply filter to each graphic
var i = graphics.length;
while (i--) {
  graphics[i].transparencySettings.blendingSettings.blendMode = BlendMode.MULTIPLY;
thank you
mg.

Similar Messages

  • Blending Mode (Multiply) Not Working

    Hello, I am working with CS6. I am attempting to add shadow to my text, which is a simple enough process. However, it doesn't appear as though my blending modes are working. Putting it on as a Multiply doesn't do anything to the solid shadow catcher. I have seen in the forum that some have had luck by changing the solid color, but this does not work for me. Any help would be greatly appreciated. Thanks!

    Sorry if I am not clear.
    It is in classic 3D. The solid plane has Material Options as such: Casts Shadows>off, Accepts Shadows>On, Accepts Lights>Off (and On, no difference). My text is set to cast shadows, Accept Lights>Off.
    As far as layers, I have only my Shadow Catch plane, the text, my clip, one camera. Ordered from top: Light, Shadow Catcher, Text, Clip.
    I am new to the forum, so if I can provide any more information that would be helpful to you, please let me know.

  • Java2D advanced blending mode (multiply, overlay, divide, ...)

    Hi everyone,
    on a RFE I voted for, I read that new blending mode such as multiply, overlay, divide, lighten, etc will be optimized with Dolphin.
    I am developing a full-screen java game and the AlphaComposite is sometime not sufficient to make the effects I need. I have been implementing the blending modes I need manually but this seriously decrease my frame rate. I would love seeing these "standard Photoshop/GImp" blending modes added to the optimization pipeline.
    The proposal was to make use of pixel shaders leverage to achieve this in DOlphin.
    Any news that could make me happy ?
    Vince.

    Noone has any info on the implementation of the advanced blending mode in Dolphin ?
    For those who are interested in this topic, have a look at Romain Guy's Weblog, http://www.jroller.com/page/gfx?entry=new_blendings_modes_for_java2d
    My concern is that this wonderful implementation by Romain Guy is not going to wor for me since my game fps would be seriously decrease if I break the hardware optimization pipelines. The openGL and DirectDraw pipelines are working really well and new optimized blending modes would definitely be valuable.
    Vince.

  • Blending Modes in Photoshop CS2

    I have 3 images all associated with each other. Image 'A' is made from images 'B' and 'C'. The three images were actually rendered in 3DS MAX as elements.
    So in photoshop image 'B' multiply(blend mode) image 'C' = image 'A' then
    image 'A' divide(blend mode) image 'B' = image 'C'.
    Is blend mode 'multiply' actually multiply? Which blend mode represents dividie?
    Thanks in advance.

    Maybe overlay or screen would be closer to what you want.
    If you would like to see how the blend modes work. Create a layer with black, 50% grey, and white on it. Duplicate the layer and invert it. This will flip the colors the opposite direction. Now with the top layer selected try the multiple, overlay and screen modes. While your at it go through the rest. On a PC when one blend mode has been selected you can use the up and down arrow keys to scroll through the modes.

  • Strange multiply blend mode behavior.

    Hi,
    i am working on a project and i am surprised to find a strange multiply blend mode behavior.
    When i open a new blank document to try again the multiply behavior, all seems to work well.
    Is it possible that the document i am working on became corrupted ?
    I work on a 2012 Macbook Pro Retina 15", Mac OS X 10.8.5 and Photoshop CC 14.1.2.
    This is what i see :
    - Normal blen mode.
    - Multiply blend mode.
    Thank you for the help
    Regards.

    Ok, i found the solution by chance but it raises new questions.
    I stayed on the same document (because i thought that it could be corrupted) but made all the layers invisibles.
    I created a first Color Fill layer filled with 50% grey (as background) and just above an other Color Fill layer filled with white (as white paint).
    So i masked all the white color fill layer and just made 2 stokes.
    In normal mode, i got this which is normal.
    So, i chose the multiply blend mode and got this (which is again normal).
    P.S. : i am writing the end of the post in a second post because i am having problem to post screenshot...

  • Photoshop Help Video - Can't Locate Katrin Eismann Blending Modes Video

    I bookmarked a Katrin Eismann video on blending modes on May 7, 2010. I am trying to locate that video now, so far without success.
    Here's the former link: http://www.adobe.com/designcenter/video_workshop/?id=vid0012
    As I recall, she showed a great example of how to isolate just a portion of a night time scene. As best I recall, the trees were colorful while everything else was black and white.
    I have been hunting for a while without success. I believe it used to be associated with the help file. In fact it still is. If you search on Adobe's help for "blending modes" your first link is likely:
    Photoshop Help | Blending modes
    And as you work your way though the discussion, you find this:
    These examples show the result of painting part of the image’s face using each blending mode.
    For a video on blending modes, see www.adobe.com/go/vid0012.
    Does anyone know how I can locate this video?

    This same non-existent link is still listed on various Adobe web pages, but alas, the page with the video no longer exists. This is obviously an error on the part of the (huge) Adobe website.
    The best thing to do is to submit a bug report, and hope they fix it:
    Adobe - Feature Request/Bug Report Form

  • Blending mode help please!!!!!

    Hi everyone.
    I'm now using a mac for indesign and I've found that to preview different blending modes (normal-multiply-screen etc) on an object I have to click on each mode separately. Is there any way you can cycle through them and see the results? - In photoshop you press shift, and then + or - and it will cycle. - This way is far quicker and less fiddly!
    Any thoughts?
    Thanks,
    Chris.

    That's very strange, I'm nearly sure I got that tip from someone who works with Mac Os?
    I find that if I call up the panels with a shortcut key the first field is highlighted, I can then Tab around the panel.
    If I click withing the Panel at any stage, then the tab key hides all the panels.
    Sorry it doesn't work for you, cycling the blend modes is great, sometimes I know I need Multiply, but I cycle them anyway to see if anything looks better.
    Maybe someone who is Mac orientated knows of another way.

  • Blending modes help?

    Hi, I loaded a picture up and placed a white square with opacity "10%" to act as a "watermark". I merged it down and duplicated that square with the same opacity. Then I changed the second square to "subtract". They should cancel eachother out and I should be left with the original image, correct? But the result is a grayish/desaturated square. No values reached 255, so there shouldn't be any data loss. Can someone explain this? And how would I go about cancelling out the first square I made if this is not how to do it?

    It's the best solution so far, as it seems to be the closest to cancelling out the square. But it's nothing I haven't tried already. I've tried every blending mode on the second layer with both white and black squares. They all leave a desaturated (not completely desaturated, but less than the original) looking artifact.
    I just tried with an even simpler set up. I opened a 10x10 document, and filled it with the color (123,164,93). then i added a new layer of white, turned opacity to 20% and merged.Then I added another layer of white, turned the opacity to 20%, selected "subtract", and merged. The final image should be a 10x10 square that's (123,164, 93) but instead it's (119, 146, 100). And I just checked and that doesn't even return the same brightness value.
    I tried different blending modes for the second layer and even tried putting the first white layer on "linear dodge (add)" thiking "well, since add is the opposite of subtract, it should work". Still, I never get the original color.
    Is this a bug in just my software??? Have you tried doing this experiment yourself and it works on your end??? Is there a setting somewhere that I can adjust that should be adjusted??? Or is this a bug or issue that Adobe hasn't worked out? Maybe they need another blending mode called "super simple subtract"?? lol please help because I think this should be sooo freakin easy. The programming for it would childsplay! R - R, G - G, B - B... that's how "subtract" should work

  • I need help writing a script that finds the first instance of a paragraph style and then changes it

    I need help writing a script that finds the first instance of a paragraph style and then changes it to another paragraph style.  I don't necessarily need someone to write the whole thing, by biggest problem is figuring how to find just the first instance of the paragraph style.  Any help would be greatly appreciated, thanks!

    Hi,
    Do you mean first instance of the paragraph style
    - in a chosen story;
    - on some chosen page in every text frames, looking from its top to the bottom;
    - in a entire document, looking from its beginning to the end, including hidden layers, master pages, footnotes etc...?
    If story...
    You could set app.findTextPreferences.appliedParagraphStyle to your "Style".
    Story.findText() gives an array of matches. 1st array's element is a 1st occurence.
    so:
    Story.findText()[0].appliedParagraphStyle = Style_1;
    //==> this will change a paraStyle of 1st occurence of story to "Style_1".
    If other cases...
    You would need to be more accurate.
    rgds

  • HELP !!! - sql script to find free space in Oracle7,8,9 DB

    Hi All
    I got a PL/SQL script to find out free space in Oracle7,8,9 db. But because in Oracle 7 there is no maxbytes column in dba_data_files, so this script is not working. I am trying to use cursor and putting sql in a variable so that when program executes, it does not see maxbytes. But it still does not work.
    Please help. !!!
    Script
    set feedback off;
    set serveroutput on;
    set termout off;
    set verify off;
    spool /u01/app/oracle/admin/common/bck/log/ts.log
    declare
    v_tablespace_name varchar2(50);
    v_total_space number(12) := 0;
    v_free_space number(12);
    v_space number(12);
    v_space_used number(12);
    v_pct_free number(6,3);
    v_pct_threshold number(3) := 2;
    v_table_exist number(2) := 0;
    v_sql varchar2(300) := 'select sum(maxbytes) from dba_data_files where TABLESPACE_NAME = tablespace_rec.tablespace_name';
    TYPE t_tableref IS REF CURSOR;
    t_tablecur t_tableref;
    begin
    for tablespace_rec in (select tablespace_name from dba_tablespaces)
    loop     
    -- Get the total space for the current tablespace
    -- if this FILEXT$ view exists then some of the datafiles have autoextend on;
              select count(*) into v_table_exist from dba_tables where table_name = 'FILEXT$';
              dbms_output.put_line('table count: ' || v_table_exist);               
              if v_table_exist = 0 then
                        OPEN t_tablecur for v_sql;
                        fetch t_tablecur into v_total_space;                         
                        CLOSE t_tablecur;     
              --     select sum(maxbytes) into v_total_space from dba_data_files
              --     where TABLESPACE_NAME = tablespace_rec.tablespace_name;               
              --      v_total_space := getMaxBytes(tablespace_rec.tablespace_name);
              end if;
              select sum(bytes) into v_space from dba_data_files
              where TABLESPACE_NAME = tablespace_rec.tablespace_name;          
         if (v_total_space = 0 or v_total_space < v_space) then
              select sum(bytes) into v_total_space from dba_data_files
              where TABLESPACE_NAME = tablespace_rec.tablespace_name;
              select sum(bytes) into v_free_space from dba_free_space
              where TABLESPACE_NAME = tablespace_rec.tablespace_name;
         else
              select sum(bytes) into v_free_space from dba_free_space
              where TABLESPACE_NAME = tablespace_rec.tablespace_name;
              v_space_used := v_space - v_free_space;
              v_free_space := v_total_space - v_space_used;          
         end if;
    -- calculate the percent free for the current tablespace
    v_pct_free := (v_free_space / v_total_space) * 100;
         if (v_pct_free < v_pct_threshold) then
         dbms_output.put_line(tablespace_rec.tablespace_name|| ' - Percent Free: ' || v_pct_free      
         ||'%');
         end if;
    end loop;
    end;
    spool off;

    Hi All
    I got a PL/SQL script to find out free space in Oracle7,8,9 db. But because in Oracle 7 there is no maxbytes column in dba_data_files, so this script is not working. I am trying to use cursor and putting sql in a variable so that when program executes, it does not see maxbytes. But it still does not work.
    Please help. !!!
    Script
    set feedback off;
    set serveroutput on;
    set termout off;
    set verify off;
    spool /u01/app/oracle/admin/common/bck/log/ts.log
    declare
    v_tablespace_name varchar2(50);
    v_total_space number(12) := 0;
    v_free_space number(12);
    v_space number(12);
    v_space_used number(12);
    v_pct_free number(6,3);
    v_pct_threshold number(3) := 2;
    v_table_exist number(2) := 0;
    v_sql varchar2(300) := 'select sum(maxbytes) from dba_data_files where TABLESPACE_NAME = tablespace_rec.tablespace_name';
    TYPE t_tableref IS REF CURSOR;
    t_tablecur t_tableref;
    begin
    for tablespace_rec in (select tablespace_name from dba_tablespaces)
    loop     
    -- Get the total space for the current tablespace
    -- if this FILEXT$ view exists then some of the datafiles have autoextend on;
              select count(*) into v_table_exist from dba_tables where table_name = 'FILEXT$';
              dbms_output.put_line('table count: ' || v_table_exist);               
              if v_table_exist = 0 then
                        OPEN t_tablecur for v_sql;
                        fetch t_tablecur into v_total_space;                         
                        CLOSE t_tablecur;     
              --     select sum(maxbytes) into v_total_space from dba_data_files
              --     where TABLESPACE_NAME = tablespace_rec.tablespace_name;               
              --      v_total_space := getMaxBytes(tablespace_rec.tablespace_name);
              end if;
              select sum(bytes) into v_space from dba_data_files
              where TABLESPACE_NAME = tablespace_rec.tablespace_name;          
         if (v_total_space = 0 or v_total_space < v_space) then
              select sum(bytes) into v_total_space from dba_data_files
              where TABLESPACE_NAME = tablespace_rec.tablespace_name;
              select sum(bytes) into v_free_space from dba_free_space
              where TABLESPACE_NAME = tablespace_rec.tablespace_name;
         else
              select sum(bytes) into v_free_space from dba_free_space
              where TABLESPACE_NAME = tablespace_rec.tablespace_name;
              v_space_used := v_space - v_free_space;
              v_free_space := v_total_space - v_space_used;          
         end if;
    -- calculate the percent free for the current tablespace
    v_pct_free := (v_free_space / v_total_space) * 100;
         if (v_pct_free < v_pct_threshold) then
         dbms_output.put_line(tablespace_rec.tablespace_name|| ' - Percent Free: ' || v_pct_free      
         ||'%');
         end if;
    end loop;
    end;
    spool off;

  • Help on blending mode

    Im looking for a in-depth explanation of blending mode algorithms.  Can someone tell me where I can find that for all modes?
    tex

    Try this link.   http://www.google.com/url?sa=t&source=web&cd=4&ved=0CDYQFjAD&url=http%3A%2F%2Fhelp.adobe.c om%2Fen_US%2Fphotoshop%2Fcs%2Fusing%2FWSfd1234e1c4b69f30ea53e41001031ab64-77e9a.html&rct=j &q=blending%20modes%20cs5&ei=0rPWTcGqOYLQsAO-672xBw&usg=AFQjCNGZTAE7YfZkzxT5DU72ofA6GxMT6g &cad=rja

  • Help. New to scripting!  Find registration colors used

    Hi!
    i have this script to find registration colors.... but when run in ESTK. it show errors on the below highlighted....
    could anyone help out this!
    error it throws is:
    function myCheckForRegistration(myEvent){
    var myRegistrationSwatchUsed = false;
    if(app.selection.length != 0){
    for(var myCounter = 0; myCounter < app.selection.length; myCounter++){
    if((app.documents.item(0).selection[myCounter].fillColor ==
    app.documents.item(0).swatches.item("Registration"))||
    (app.documents.item(0).selection[myCounter].strokeColor ==
    app.documents.item(0).swatches.item("Registration")){                    error is: // expected:)
    myRegistrationSwatchUsed = true;
    if(myRegistrationSwatchUsed == true){
    alert("The Registration swatch is applied to some of the\robjects in the selection. Did you really intend to apply this swatch?");
    thanks
    shil..

    hellow lauv!!!
    i tried your command....
    ungrouped the object.item(n) between OR....
    function myCheckForRegistration(myEvent){
    var myRegistrationSwatchUsed = false;
    if(app.selection.length != 0){
    for(var myCounter = 0; myCounter < app.selection.length; myCounter++){
    if(app.documents.item(0).selection[myCounter].fillColor ==app.documents.item(0).swatches.item("Registration")||
    (app.documents.item(0).selection[myCounter].strokeColor ==app.documents.item(0).swatches.item("Registration")){                   //  error is: expected:)
    myRegistrationSwatchUsed = true};
    if(myRegistrationSwatchUsed == true){
    alert("The Registration swatch is applied to some of the\robjects in the selection. Did you really intend to apply this swatch?");
    the error is:
    thanks for fastidious care on my script....
    shall i wait for the reply...
    shil!

  • Creating shapes with blend modes in actionscript 3

    Ok I'm having a lot of trouble with ActionScript 3. I'm supposed to make five buttons that when clicked show a different blend mode using 2 or more shapes. Each of these blend modes also has to have a text box explaining what the blend mode does.  The assignment requires only one layer which is the actions layer. Everything has to be made using script only, which is why I'm having so many problems.
    Can someone please help me with this and simplify it has much as possible. I need to have some sort of answer sometime tomorrow. I thank anyone who helps.
    I have this code so far.
    import flash.text.TextField;
    import flash.text.TextFormat;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.MouseEvent;
    import flash.display.Shape;
    //create button instances
    var btn:darkBtn = new darkBtn;
    var btn2:invertBtn = new invertBtn;
    var btn3:overBtn = new overBtn;
    var btn4:screenBtn = new screenBtn;
    var btn5:subBtn = new subBtn;
    //add our interface objects to the main display list
    addChild(btn);
    addChild(btn2);
    addChild(btn3);
    addChild(btn4);
    addChild(btn5);
    //button positions
    btn.x = 12;
    btn.y = 395;
    btn2.x = 131;
    btn2.y = 395;
    btn3.x = 250;
    btn3.y = 395;
    btn4.x = 367;
    btn4.y = 395;
    btn5.x = 485;
    btn5.y = 395;
    //create a new font
    var mainFont = new GeorgiaRegular();
    //create a new text format object
    var mainFormat:TextFormat = new TextFormat();
    mainFormat.size = 18;
    mainFormat.leading = 4.5;
    mainFormat.font = mainFont.fontName;
    mainFormat.kerning = true;
    //create text field copy
    var mainTxt:TextField = new TextField;
    mainTxt.x = 307;
    mainTxt.y = 182;
    mainTxt.width = 221;
    mainTxt.height = 333;
    mainTxt.multiline = true;
    mainTxt.wordWrap = true;
    mainTxt.defaultTextFormat = mainFormat;
    mainTxt.autoSize = TextFieldAutoSize.LEFT;
    mainTxt.embedFonts = true;
    //create a URLLoader object
    var textLoad:URLLoader = new URLLoader;
    //create a new URLRequest
    var darkReq:URLRequest = new URLRequest ("text/dark.txt");
    var invertReq:URLRequest = new URLRequest ("text/invert.txt");
    var overReq:URLRequest = new URLRequest ("text/over.txt");
    var screenReq:URLRequest = new URLRequest ("text/screen.txt");
    var subReq:URLRequest = new URLRequest ("text/sub.txt");
    //test to see that the external file has completely loaded
    //once it has executed the function that will add the loaded content
    //to our dynamic text field
    textLoad.addEventListener(Event.COMPLETE, textComplete);
    //function to execute once the external data is loaded;
    //adds the external file data (the actual text) to our text field
    function textComplete(event:Event):void
        mainTxt.text = event.target.data;
    //create a new shape object
    var sq:Shape = new Shape();
    //use the lineStyle method of the graphics object to
    //set the line thickness and color
    sq.graphics.lineStyle(2, 0x000000);
    //use the beginFill method to fill the shape
    //with the specified color
    sq.graphics.beginFill(0xFF86600);
    //use the drawRect method to draw a rectangle
    sq.graphics.drawRect(175, 100, 100, 100);
    //use the endFill method to end the fill of the shape
    sq.graphics.endFill();
    //add our shaped to the display list
    addChild(sq);
    //create a new shape object
    var circ:Shape = new Shape();
    //use the lineStyle method of the graphics object to
    //set the line thickness adn color
    circ.graphics.lineStyle(2, 0x000000);
    //use the beginFill method to fill the shape
    //with the specified color
    circ.graphics.beginFill(0xFF9900);
    //use the drawCircle method to draw a circle
        circ.graphics.drawCircle(150, 150, 85);
    //use the endFill method to end the fill of the shape
    circ.graphics.endFill();
    //add our shape to the display list
    addChild(circ);
    //apply a blend mode to the circle
    circ.blendMode = BlendMode.MULTIPLY;
    //create a display object container
    var contentContainer:Sprite = new Sprite;
    addChild(contentContainer);
    contentContainer.x = 10;
    contentContainer.y = 24;
    contentContainer.width = 1000;
    contentContainer.height = 725;
    //set initial page
    contentContainer.addChild(mainTxt);
    textLoad.load(darkReq);

    blendModes can only be applied to DisplayObjects (Sprites, MovieClips, Bitmaps etc)
    For an example how to get it working:
    DisplayObject - Adobe ActionScript® 3 (AS3 ) API Reference

  • Video track luminosity blend mode weirdness

    Applied sharpening to a video track and set the blend mode to luminosity (so that I could put a blurry multiplied layer in between)
    Now wherever the luminosity layer finds an overexposed highlight it renders as black.  If I turn down the opacity of luminoisty layer it stays black, if I switch it off it dissappears. !

    Hi Chris,
      Thanks very much for your straightforward and helpful answer. So, it would appear that my simplistic understanding of the Hue blend mode as 'replacing' the hue of the underlying layer(s) is incorrect. Would a fair rendering of what the Hue blend mode actually does be as follows?
    "The Hue blend mode will perform a direct replacement of the hue in the underlying layer(s). The brightness and saturation of the underlying layer(s) will not be affected *unless* the resultant hue, saturation, and brightness 3-tuple would result in an illegal HSL combination, in which case the saturation and brightness of the resultant pixels will be altered to bring the HSL values into compliance."
    Also, is there a way for the Info panel to display HSL values?
    Thanks again,
    Matt

  • CS4 bringing photoshop layered files into illustrator - blending modes

    Hello.
    I have a layered photoshop file that is being brought into illustrator. One layer is a drop shadow and is set to multiply within photoshop. The drop shadow is NOT an effect. It's just a plain layer of a drop shadow. When I bring it into illustrator it doesn't act as if it is set to multiply when placed over my illustrator object. I know it's easy enough to make the shadow within illustrator and set the blending mode there but I would like to know why this is not working.
    Thanks in advance for the help.
    -PB

    Illustrator's blending math is not the same as Photoshop's -- there will be differences if you import/export layered data between the apps.

Maybe you are looking for

  • I'm suddenly in need of help with my Firefox browser (6.0.2)

    Hi there, I'm suddenly in need of help with my Firefox browser (6.0.2) (OS: I use Windows XP). When I open up the browser, all I see is a completely blank white screen, with all the toolbars at the top. I know that my physical connections are fine: I

  • Text frames not supported and images can't be imported when trying to open word document, can this be fixed?

    trying to open a word document in pages, no images, diagram r tables are seen, states problems are text frames not supported and that images can not be imported. the document opens fine in mircosoft office. can this be fixed or do i need to buy micro

  • Can't close a tab(

    While crossing the Web opened that link in google http://beginning.etxddwgiedhndnfgfd.info/antvrs/# I can't close it( Maybe somebody knows what i have to do?

  • Oracle 9i SID

    hi all, i have the following question : a) I am using windows XP professional and oracle 9.0.1 enterprise edition. Under the windows environment, how do i set the environment variable of the oracle SID ? In UNIX (SUN SOLARIS), the oracle_sid can be s

  • I did not get the purchase from planetside 2

    i just bought the Heroic Boost Bundle (Game Pack) from the ps store. but i haven't got it in game or been able to download it yet . can i get my money back or do i somehow get to download the Heroic Boost Bundle (Game Pack)