.jsx to add a shadow

i need a script to add a shadow (made with ellipse->blur->gaussian blur->motion blur) to a thounsand of images (bottle of wine) perfectly cropped.
i have a lot of difficulties because the bottle have different size and the shadow must have the size of the bottle.
Thanks

Try the Photoshop Scripting forum:
Photoshop Scripting

Similar Messages

  • How can I add a shadow to a tabbed panel?

    Trying to put a shadow on the active state of a tabbed panel so the tab and the content areas share one continuous shadow. Want the active panel to look like it's sitting above the other, inactive panels - the way a stack of file folders would look: shadows on all the tabs, but the folder on the top of the stack would have a shadow around the tab and the rest of the folder.
    I can get the shadows to work on the tabs - where the active tab has a larger shadow than the normal (inactive) tabs and they look like they're sitting behind it - but when I try to add a shadow to the content panel it makes the panel appear to sit above the tab that goes with it. I tried arranging the tab on top ("Bring to front") but it still sits behind the content panel. Also tried pulling all the tabs to the front, but the content panel still sits in front and any shadow on the active panel is still over the active tab.
    I know I can get an effect that's kinda-sorta what I'm going for with flat color (lighter for active, etc.) but would love to add some truer-looking depth to the active tabbed panel.
    Any suggestions?

    you can control the dropshadow's angle property dynamically.  and, yes the dropshadowfilter has an alpha and strength properties you can use.
    use the help files to see all the properties you can use.

  • How can I add drop shadow to a vehicle that changes direction ?

    Hi,
    Flash CS5
    Is it possible to add drop shadow to plan views of vehicles (vehicles are png images as MovieClips) such that as the vehicles change direction along roads (also png images) the shadow is always cast to north west ot the vehicle ? Buildings in the base png image have shadows but vehicles also need them so as to belong to the scene and not appear false.
    How is it done ?
    Is there control over opacity and softness ?
    If I were to have plan views of humans walking would the shadows follow the leg movements ?
    Envirographics

    you can control the dropshadow's angle property dynamically.  and, yes the dropshadowfilter has an alpha and strength properties you can use.
    use the help files to see all the properties you can use.

  • How to add DROP SHADOW

    I posted earlier but figured I'd give it another shot due to the flood of other posts.  Has anyone figured out how to add a drop shadow (preferably to video clip with an alpha channel, but other applications such as psd files, etc. would good to know for as well).  I mean, if iWeb can have drop shadows, SURELY Final Cut Pro X does...right?

    The solution is do do it in Motion. Only took me a minute to figure it out.
    Basically, you create a "Final Cut Effect" in the project browser of Motion, and take a clip (any clip will work, it seems), scale it down to 50% or whatever, add the drop shadow (easy to find), and hit Save.
    Motion will tell you it's "publishing" it, and ask you for a category. I created one with my name.
    Go back to FCPX, my new category appears instantly in the Effects browser, and there's my shadow effect in that category. Drag your newly created effect to the clip you want to effect, and there you go.
    The nice thing is, having your own saved effects makes it easy to be consistent when you want to apply that effect to several things.

  • Add realistic shadow to keyed person?

    FCS 2
    Motion 3
    Hi all,
    I'm doing a chromakey in Motion of a person; the background plate is the interior of a room.
    What do I use to add a realistic shadow to her? Couple factors:
    1. The talent is not stationary; she moves throughout the entire screen width
    2. The floor & ceiling meet 2-3 feet (visually) behind her
    3. She sits on a bench at one point, if that needs to be figured in
    Is there a way to do this in Motion? Or do I have to use a third-party plugin/filter?
    I've searched but am probably not using the right keywords; I find lots of posts about regular drop shadows for stationary objects.
    Any help is very much appreciated!
    Brett

    1) Duplicate the layer
    2) Use the Channel Swap filter to switch all channels to Alpha - this will make your keyed subject all white
    3) Add an Invert filter - this will make it all black - your shadow
    4) Right-click and select the Four Corner tool, distort to tast
    5) Blur as needed (you might want to group the layer and blur the group)
    6) You can duplicate this whole thing, remove the blur from the original, then use an image mask with a gradient to have the blur fall off as the shadow gets closer to the subject.

  • Add drop shadow with css?

    is there a way to add a dropshadow with css? (specifically to
    a label component)
    Thanks!

    "Phrankie" <[email protected]> wrote in
    message
    news:gop31l$24j$[email protected]..
    >
    quote:
    Originally posted by:
    ashtangakasha
    >
    quote:
    Originally posted by:
    danger42
    > No, drop shadows are implemented as filters, not styles.
    They cannot be
    > set
    > via CSS in Flex 3.
    >
    > matt horn
    > flex docs
    >
    > Although Matt's reply is true with respect to label
    components, which is
    > what
    > the original question addressed, it's worth pointing out
    that MXML Styles
    >
    can
    set dropshadows on components which happen to expose the
    > dropShadowEnabled property. Perhaps this is new to Flex
    3.2.
    >
    > For example, CSS can apply dropshadows to TextArea,
    Canvas, DataGrid,
    > AdvancedDataGrid, and other list-based containers, but
    not to Buttons,
    > Labels,
    > ComboBoxes, Images, etc. The rationale for exposing or
    not exposing the
    > dropShadowEnabled (and dropShadowColor) property is not
    clear, so you have
    > to
    > refer to the docs.
    I think it depends on whether the component has a HaloBorder
    or not.

  • Add drop shadow to vector map

    Hi,
    I have troubles in adding a drop shadow to a vectorized map (in *.ai format).
    All countries are separated by a white thin line, so that it is possible to highlight a certain country of interest in another colour.
    When these countries have been selected, I would like to add a drop shadow under the map outlines, ie under each continent.
    But everytime I try to do so, the drop shadow also gets under each country.
    My guess is that I have to group the countries within a continent or something else, but I fail each time I try.
    Does anybody have a clue?!
    Many thanks in advance
    Annika

    Annika,
    What happens if you:
    1) Select all countries in the continent and copy to the back (Ctrl/Cmd+C+B);
    2) Pathfinder>Merge the copy;
    3) Effects>Stylize>Drop Shadow applied to the merged copy?

  • Can't add drop shadow to text in PSE 6

    Everyone says to do Layer > Layer Style > Style Settings.
    But when I go to Layer Style and try to get to Style Settings, Style Settings is greyed out.   (The text in quesiton is already selected.)
    In fact, I've tried everything possible to get Style Settings to become engaged and have not been able to do that.
    Also, when I go into Effects and try to add cool effect (torn paper, glowing edges, etc.) to the text, it automatically changes the color of my text.  For example, my text is orange and when I tried "glowing edges" it changed the text to olive drab... and it certainly didn't glow.
    Any guidance you can give with these issues... thanks!

    Style Settings is for adjusting styles you've already added. The effects you listed are all filters, not effects or layer styles and they use the foreground/background colors, so yes, they will change the color of your text. To apply a drop shadow click the Layer styles button on the effects panel, choose drop shadows from the pulldown menu and double click the one you want. If you don't like it, undo it and try a different one. Then you should be able to adjust things like the angle and distance of the shadow by adjusting the style settings.

  • Add cast shadow to person?

    Motion 3
    FCS 2
    Rephrasing (more succinctly) an unanswered question from a while back:
    Is it possible to add a cast shadow to a chromakeyed person?
    (1) Is there a trick or workaround to do this within Motion?
    (2) Is there a plug-in? Or, a separate program that does this?
    I've searched the forums and Googled the web, but not having much luck. I appreciate any help or direction.
    Thank you!

    1) Duplicate the layer
    2) Use the Channel Swap filter to switch all channels to Alpha - this will make your keyed subject all white
    3) Add an Invert filter - this will make it all black - your shadow
    4) Right-click and select the Four Corner tool, distort to tast
    5) Blur as needed (you might want to group the layer and blur the group)
    6) You can duplicate this whole thing, remove the blur from the original, then use an image mask with a gradient to have the blur fall off as the shadow gets closer to the subject.

  • Add Drop Shadow to JMenu Problem

    Hi,
    I got this code from "Swing Hacks", for some reason it does not run for me, but throws exceptions. I can not figure out why this is happening. This code straight out of the book, should be runnable. Below is the custom class, then the driver-test class, then the Exception:
    import javax.swing.plaf.basic.*;
    import javax.swing.plaf.*;
    import javax.swing.border.*;
    import javax.swing.*;
    import java.awt.*;
    public class CustomPopupMenuUI extends BasicPopupMenuUI{
         public static ComponentUI createUI(JComponent c){
              return new CustomPopupMenuUI();
         public Popup getPopup(JPopupMenu popup, int x,
                   int y){
              Popup pp = super.getPopup(popup, x,y);
              JPanel panel = (JPanel)popup.getParent();
              panel.setBorder(new ShadowBorder(3,3));
              panel.setOpaque(false);
              return pp;
    class ShadowBorder extends AbstractBorder{
         int xoff,yoff;
         Insets insets;
         public ShadowBorder(int x, int y){
              this.xoff = x;
              this.yoff = y;
              insets = new Insets(0,0,xoff,yoff);
         public Insets getBorderInsets(Component c){
              return insets;
         public void paintBorder(Component comp, Graphics g,
                   int x, int y, int width, int height){
              g.setColor(Color.BLACK);
              g.translate(x,y);
              // draw right side
              g.fillRect(width-xoff,yoff,xoff,height-yoff);
              // draw bottom side
              g.fillRect(xoff,height-yoff,width-xoff,yoff);
              g.translate(-x,-y);
    // Driver Below
    import javax.swing.*;
    import javax.swing.plaf.ComponentUI;
    import java.awt.*;
    public class MenuTest {
         public static void main(String[] args)throws Exception{
              UIManager.put("PopupMenuUI","CustomPopupMenuUI");
              //UIManager.put("MenuItemUI","LucentMenuItemUI");
              JFrame frame = new JFrame();
              JMenuBar mb = new JMenuBar();
              //mb.setUI(new CustomMenuUI());
              frame.setJMenuBar(mb);
              JMenu menu = new JMenu("File");
              mb.add(menu);
              menu.add(new JMenuItem("Open"));
              menu.add(new JMenuItem("Save"));
              menu.add(new JMenuItem("Close"));
              menu.add(new JMenuItem("Exit"));
              menu = new JMenu("Edit");
              mb.add(menu);
              menu.add(new JMenuItem("Cut"));
              menu.add(new JMenuItem("Copy"));
              menu.add(new JMenuItem("Paste"));
              menu.add(new JMenuItem("Paste Special.."));
              frame.getContentPane().setLayout(new BorderLayout());
              frame.getContentPane().add("North",new JButton("Button"));
              frame.getContentPane().add("Center",new JLabel("Label"));
              frame.getContentPane().add("South",new JCheckBox("checkbox"));
              frame.pack();
              frame.setSize(200,150);
              frame.show();
    }Exception:
    UIDefaults.getUI() failed: no ComponentUI class for: javax.swing.JPopupMenu[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=,desiredLocationX=0,desiredLocationY=0,label=,lightWeightPopupEnabled=true,margin=,paintBorder=true]
    java.lang.Error
         at javax.swing.UIDefaults.getUIError(Unknown Source)
         at javax.swing.MultiUIDefaults.getUIError(Unknown Source)
         at javax.swing.UIDefaults.getUI(Unknown Source)
         at javax.swing.UIManager.getUI(Unknown Source)
         at javax.swing.JPopupMenu.updateUI(Unknown Source)
         at javax.swing.JPopupMenu.<init>(Unknown Source)
         at javax.swing.JPopupMenu.<init>(Unknown Source)
         at javax.swing.JMenu.ensurePopupMenuCreated(Unknown Source)
         at javax.swing.JMenu.add(Unknown Source)
         at hacks.MenuTest.main(MenuTest.java:23)
    advTHANKSance

    I am also using xp and java version 1.4.2_08, but to no avail.. see below:
    C:\workspace\Swing Hacks\src>java -version
    java version "1.4.2_08"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
    C:\workspace\Swing Hacks\src>java hacks.MenuTest
    UIDefaults.getUI() failed: no ComponentUI class for: javax.swing.JPopupMenu[,0,0
    ,0x0,invalid,alignmentX=null,alignmentY=null,border=,flags=0,maximumSize=,minimu
    mSize=,preferredSize=,desiredLocationX=0,desiredLocationY=0,label=,lightWeightPo
    pupEnabled=true,margin=,paintBorder=true]
    java.lang.Error
    at javax.swing.UIDefaults.getUIError(UIDefaults.java:689)
    at javax.swing.UIDefaults.getUI(UIDefaults.java:719)
    at javax.swing.UIManager.getUI(UIManager.java:784)
    at javax.swing.JPopupMenu.updateUI(JPopupMenu.java:204)
    at javax.swing.JPopupMenu.<init>(JPopupMenu.java:169)
    at javax.swing.JPopupMenu.<init>(JPopupMenu.java:154)
    at javax.swing.JMenu.ensurePopupMenuCreated(JMenu.java:521)
    at javax.swing.JMenu.add(JMenu.java:556)
    at hacks.MenuTest.main(MenuTest.java:23)
    UIDefaults.getUI() failed: no ComponentUI class for: javax.swing.JPopupMenu[,0,0
    ,0x0,invalid,alignmentX=null,alignmentY=null,border=,flags=0,maximumSize=,minimu
    mSize=,preferredSize=,desiredLocationX=0,desiredLocationY=0,label=,lightWeightPo
    pupEnabled=true,margin=,paintBorder=true]
    java.lang.Error
    at javax.swing.UIDefaults.getUIError(UIDefaults.java:689)
    at javax.swing.UIDefaults.getUI(UIDefaults.java:719)
    at javax.swing.UIManager.getUI(UIManager.java:784)
    at javax.swing.JPopupMenu.updateUI(JPopupMenu.java:204)
    at javax.swing.JPopupMenu.<init>(JPopupMenu.java:169)
    at javax.swing.JPopupMenu.<init>(JPopupMenu.java:154)
    at javax.swing.JMenu.ensurePopupMenuCreated(JMenu.java:521)
    at javax.swing.JMenu.add(JMenu.java:556)
    at hacks.MenuTest.main(MenuTest.java:30)
    I don't understand what the issue could be..
    Can anyone reproduce this error??

  • Why Cant I Add Drop Shadow? artwork size & resolution exceeds the maximum that can be rasterized

    I am making a sign for sign writing. The overall size is 2400mmx1800mm. so its quiet big.
    But When I go to put a drop shadow behind it it comes up with this -
    " The combination of artwork size & resolution exceeds the maximum that can be rasterized"
    Why is it saying this? How do I put a drop shadow on it?

    Try scaling the sign down to 600 x 450mm and building your drop shadow at a more manageable size.  When you deliver your file for output, tell the vendor to enlarge the file 400% in the RIP.  If it still will not work, check your HD for scratch space.  If there is not enough memory available to run the operation, you will continue getting the message until you clear some space and/or increase your RAM ( if necessary ).

  • Replace background and add natural shadow etc.

    Hi Guys
    What is the best way to replace a background on a picture with 2 people on the foreground?
    The people in front have been cut out with a smooth refined edge, but now I have to make sure that it seems as if they are really standing in front of a red curtain. So a naturally smooth transition from front to back with shadow etc.? Now I have quite visible edges in the front image and it is quite clear that the people were pasted in front of the background...
    Many Thanks
    Bob

    That is what the App Store reviews and ratings are for.
    Let other potential "upgraders" know.
    Meanwhile use Pages '09 which should still be in your Applications/iWork folder.
    Peter

  • Add drop shadow curled page like default photo boxes in books.

    When I pick a theme in Books in Aperture, I see the photo boxes have rotation and a shawdowed, buttom edge curled effect to the photo plaeholder boxes. I figured out how to add photo boxes and even size and rotate them, but cannot see how to add the shawdow/curled effects to the placeholder. Nor can I 'edit' existing placeholders to change there size or rotation. Seems it should be easy... but not. Also, how to add a custom page background color other than the very limited selection allowed/offered?
    Thanks!

    LewisO,
    if one could adjust the size and rotation of these theme supplied containers. That too, I have not been able to figure out how to do.
    which theme are you using? Each theme is behaving differently and some are very restrictive. For example, the "Formal" theme does not allow to rotate the photo boxes or to change the aspect ration.
    The "angle" slider in the layout options and part of the size options will be dimmed for hese themes.
    Regards
    Léonie

  • Trying to add drop shadow to home slider app

    Does anyone know how to do such a thing?

    Thanks for that but I wasnt clear enough in my question.
    I have the code but I havent been able to find where to place it in the home slider app.
    From my attempts I have determined that a class like the one in this post .shadow needs to be placed
    somewhere in the javascript code unless there is a way  to combine a drop shadow and a glow effect in  one box-shadow statement.

  • Having a strange problem with Drop Shadows in Ai CS5

    Hi there Adobe experts!
    I have tried eveything... this is my first post here, but it's my only hope. I have a project where I apply drop shadows to linked images to give a sense of depth. A few days ago, the drop shadows just stopped feathering. It doesn't matter what the blur is set to, its just one colour. Transparency still applies. Here's the kicker...I can open files with applied drop shadows to them and they look fine. But if I try to edit that existing shadow, even by 0.0001 of a pt, it will lose its feathering.
    I've deleted the AiPrefs file, and played with just about every setting in document raster effects settings. I have no clue what would cause this.
    Oh, and whatever the issue is, it starts in my computer, and then attaches to the files... I sent the ai file to a friend, and when he tried to add drop shadows, they screwed up on his machine too. But it isn't the file. I've attached a brand new (and CMYK, just to see if that would make a difference...) file of a sphere showing the problem. Even with the blur super high, the shadow remains flat and monochromatic.
    Any geniuses seen this before or have a remote clue how to solve this one?
    Thanks in advance,
    Luke

    All my ram is tripple channel DDR3, same clock speeds, but some is 2GB and some is 4GB.
    I just pulled the 2GB sticks (which I had in originally) and left in the 4GB sticks (the ones I recently purchased) and the problem goes away. It's quite odd, I've never had a problem like this before with any other application. I know it's not the best thing in the world to have different types of RAM installed, but my motherboard supports it and I've never had a problem doing it before.
    I would be interested to see if this problem is reproducable in the OP's senario, or if this problem can be reproduced by others.
    Conclusion: the 2GB sticks work on their own, and the 4GB sticks work on their own. I definitly would not call this a hardware problem, it's an adobe problem and they need to fix their software.

Maybe you are looking for

  • How to write a function with table name as parameter

    I created a function like this: create or replace function "GETNAME" (did in NUMBER, dtable in VARCHAR2) return VARCHAR2 is dname varchar2(200); begin select lastname || ' ' || firstname into dname from dtable where id = did; return dname; end; i got

  • Is there a way to reduce the length of the Timeline?

    In Captivate 6, one of my slides has an audio track that is a minute and thirty seconds long. No elements will go beyond a minute-thirty. But the timeline is twenty minutes and thirty-two seconds long. If I zoom in to fine-tune some layers the scroll

  • SOAP Header in JDeveloper

    I am attempting to greate a soap message in JDeveloper (not sure if that has any relivance at this point in time). I have followed roughly what Sun's WS Tutorial shows and I am getting an odd error message. Any suggestions are welcome at this point..

  • Auto Confirmation of PICK TO's with Handling Units !!

    I want to Create an Outbound Delivery. I then want to automatically create pick transfer orders, in the background. I then want to automatically confirm these transfer orders, in the background. I am creating my Outbound Delivery with reference to a

  • HY000 error retrieving CLOB-data from oracle database via ODBC

    Hello, I get error HY000 [Oracle][ODBC][ORA] ORA-00932: inconsistent datatype when I want to show a CLOB column in my crystal report. The type of the field in the report is memo - in the database it is CLOB. How to retrieve CLOB-data from an Oracle 1