CS5 JS-Apply Transparency Question

Hello,
I am having trouble applying transparency to some ovals I'm creating with a script. I've used script in the past to apply drop shadows but this seems a little different. I'm trying to apply Feathering and Glows and I just can't seem to figure this out. The current script I am running does some basic document preperation and the ovals are going to be used by the person who builds the page. If you could help me apply the inner glow, hopefully I will be able to figure out the feathering. Thanks for any help in advance.
The Inner Glow Presets:
And the Script:
var myDoc = app.activeDocument;
//Set measurement units to inches
myDoc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.inches;
myDoc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.inches;
myDoc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
//Zero out the document
myDoc.zeroPoint = [0,0]
//Unlock any of the locked layers     boolean
myDoc.layers.everyItem().locked=false
//Create layer and move it to the bottom, name New Layer, Set color to Charcoal
var myLayer = myDoc.layers.add();
myLayer = myLayer.move(LocationOptions.atEnd)
myLayer.name = "New Layer";
myLayer.layerColor = UIColors.CHARCOAL;
//Find swatches with values 0,0,0,100 and merge with Black swatch
var myColors = myDoc.colors;
var myBlack = myDoc.swatches.itemByName("Black");
for (i = myColors.length-1; i >= 0; i--) {
    var myColor = myColors[i];
    if (myColor.colorValue == "0,0,0,100" && myColor.name != "Black"){
        myColor.remove(myBlack);
// Add 25% Black swatch 
    try{
myDoc.colors.item("25% Black").name;
catch (myError){
myDoc.colors.add({name:"25% Black", model:ColorModel.process,
colorValue:[0, 0, 0, 25]});
//What Pages should the ovals be put on-All Spreads
var myPage = myDoc.spreads.everyItem();
//Create the ovals and specify their size and location...
var myLeftOval = myPage.ovals.add({geometricBounds:[2, -3, 2.75, -.75], fillColor:myDoc.colors.item("25% Black"),strokeColor:myDoc.swatches.item("None"), itemLayer:myDoc.layers.item("New Layer")});
var myCenterOval = myPage.ovals.add({geometricBounds:[3, -3, 3.75, -.75], fillColor:myDoc.colors.item("25% Black"),strokeColor:myDoc.swatches.item("None"), itemLayer:myDoc.layers.item("New Layer")});
var myRightOval = myPage.ovals.add({geometricBounds:[4, -3, 4.75, -.75], fillColor:myDoc.colors.item("25% Black"),strokeColor:myDoc.swatches.item("None"), itemLayer:myDoc.layers.item("New Layer")});
Thanks again for any help with this, I am at a dead end.
Danny

Hi
I think you should use ObjectStyle!
create an Object Style and set some transparency settings, and apply this to objects
var my_obj_style;
try { 
  my_obj_style = myDoc.objectStyles.add({name:"inner glow setting"});
catch(e){
  my_obj_style = myDoc.objectStyles.item("inner glow setting");
with (my_obj_style.transparencySettings.innerGlowSettings){
  applied = true;
  blendMode = 1852797549/*BlendMode.NORMAL*/;
  opacity = 100;
  noise = 0;
  effectColor = "Paper";
  technique = 2020618338/*GlowTechnique.PRECISE*/;
  spread = 79;
  size = '0.125in';
  source = 2020618594 /*InnerGlowSource.EDGE_SOURCED*/; 
//Create the ovals and specify their size and location...
var myLeftOval = myPage.ovals.add({geometricBounds:[2, -3, 2.75, -.75], fillColor:myDoc.colors.item("25% Black"),strokeColor:myDoc.swatches.item("None"), itemLayer:myDoc.layers.item("New Layer"),appliedObjectStyle:my_obj_style});
var myCenterOval = myPage.ovals.add({geometricBounds:[3, -3, 3.75, -.75], fillColor:myDoc.colors.item("25% Black"),strokeColor:myDoc.swatches.item("None"), itemLayer:myDoc.layers.item("New Layer")});
var myRightOval = myPage.ovals.add({geometricBounds:[4, -3, 4.75, -.75], fillColor:myDoc.colors.item("25% Black"),strokeColor:myDoc.swatches.item("None"), itemLayer:myDoc.layers.item("New Layer"),appliedObjectStyle:my_obj_style});
I didn't apply object style to center oval, on purpose.
Thankyou
mg.

Similar Messages

  • Apply transparency to letters in Illustrator

    I'm trying to apply transparency to items on a logo I created. Right now, I've got lettering on a layer above an opaque circle. I'd like the lettering to show through to a transparent background rather than display as a separate color. It might help to think of the logo as an adhesive logo to be attached to a storefront window. Anything in white on the logo should be cut out and show through to the transparent glass behind it.
    I tried using a clipping mask, but the circle disappears and its color is applied to the lettering.
    Here's the logo. Help much appreciated.

    Justin,
    There may be some corruption or something. You may try the list (you may skip 5) in this connexion, I believe).
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible), for CS3 - CC you may find the folder here:
    https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall (ticking the box to delete the preferences), run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • A transparent question mark on iTunes icon in dock/ iTunes won't open

    Thanks for reading this and helping me--I have an iMac and a transparent question mark is in the middle of iTunes symbol in my dock. iTunes will not open at all when I try to open and there are no error messages.
    Thanks

    Open your Applications folder and locate iTunes. Drag it's icon to the doc. Drag the other icon out of the dock and it will disappear.
    If you can't locate iTunes in your applications folder, download a fresh copy here: http://www.apple.com/itunes/download/

  • My iphoto has a transparent question mark over it and will not open. How do I fix this?

    My iphoto on my imac will not open. It has a transparent question mark over it...how do I fix it?

    Is the question mark on the Dock at the bottom of your screen? Then it means that the Dock can't find the application.
    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store you can find it in your Purchases List.

  • Apply transparency to color in "recolor artwork" tool box

    Is there any way to apply transparency to a color when using the recolor artwork box?
    I am dealing with a lot of puppet warp and gradients so it would be nice if I could use the recolor artwork box,
    instead of looking for all the colors manually.
    As you can see from the screenshot, there is a lot of colors to go through

    No. There's no option to alter transparency in Recolor Artwork.

  • Apply transparent fade to photo edges

    I have found that I can apply a fade to transparent using the Gradient tool, and dragging it in to the picture.  Works great, but I can only apply fade to one side of the photo. If I try to do the other side of the photo, the previous fade is undone.  I have to save the changed photo and redo the Gradient tool to another side of the pic, and so on.  Goal is to apply an uneven fade to transparency around the edges of a picture.   I have also tried the Background Eraser, results have not been great - seems to leave a lot of pixels behind.  Is there a way to do this - without repeatedly fading one side, saving, fading a side, saving, etc....?

    An even easier method (CS5):
    Make your selection of what you wish to keep via the Marquee tool or thru a series of Select menu options (All - Modify border (lg) - Modify Feather (sm)- Inverse).
    Choose Select - Refine Edges...
    Before clicking OK:
    1) Adjust the Feather slider (large)
    2) Adjust the Edge (left)
    3) Choose Output to: as Layer Mask
    4) re-adjust as necessary
    Click OK and there you go. Ready to Place it into another photo or onto a background where it can be Free Transformed to meet your needs.
    If you also choose Remember Settings before you click OK after you have figured out what you like then it will be even easier yet the next time you need to do this.

  • HT1338 Updated my imac from 10.6 to 10.8.2 recently. My iphoto logo in my Dock has been replaced with a transparent "question mark" and I can no longer access my iPhotos... please help!!  Mark Howell

    Why can I no longer find my iphotos?  Updated from 10.6 to 10.8.2 recently... The iphoto logo in my dock has been replaced with a transparent, grey, question mark... why? How do I restore my iphotos?  Searched for them in Finder, and in "search"... they appear as text only.. but no photos.. please help.. Mark

    Have you verified that the iPhoto applications is not in the Applications folder or somewhere else on the hard drive? 
    To do so download and use  Find Any File to search for "iPhoto.app" because FAF can search areas that Spotlight can't.  If the application is somewhere else on the HD FAF will find it.  However, I doubt that it will be there but it's worth a search. 
    OT

  • CS5 MPE nVIDIA Card Question

    I've seen the graphic card list recommended for the Mercury Playback Engine.  Everyone wants to know if their card will work.  The GTX285 made the list. I have a GTX280.  Do I get CS5 and cross my fingers?  Some tech evauluation would be great.. for instance.. "don't even try it cause it will it crash and burn" or  "it will work OK but you'll have a 15% reduction in performance."

    Grin... I am sort of in the same "wait and see" group... except mine question is "will MPE offer any benefit to non-HD work"?
    If an nVidia 285 at $400 does nothing more for SD-to-DVD over a $100 ATI... I will just buy an ATI and save $300
    If the 285 does offer rendering benefits for SD only editing... I have to weigh the cost-benefit for me
    So... wait and see (read) when CS5 is released

  • Acceptable File Formats for Applying Transparent Watermarks In Compressor

    Hello All,
    I'm trying to use a .psd file as a transparent watermark in Compressor, but instead of Compressor seeing the watermark, it only sees a blank white sheet. Question: Do I have to have Photoshop installed on my Mac workstation in order to use a .psd as a watermark? Or is something else going on?
    Thanks. Any thoughts on this, most appreciated as always!
    MBS

    What other file formats would people suggest that can work as a transparency?

  • Overprint / Transparency Question

    Hi, all. I'm working on a logo which will need to be separated for 2-color offset printing.  To produce shading effects, I've created a solid black shape to which I've applied a black/white gradient as an opacity mask.  I've set this piece over an identical shape filled with a PMS blue.  The idea is to overprint the black ink as a solid-to-transparent gradient over the blue solid to produce the shading.  When I set the black gradient to "Overprint Fill" and view the logo in "Overprint Preview" the result looks great on screen.  The design also features a hard bevel, the dark edges of which are produced by placing semi-transparent shapes filled with black and also set to "Overprint Fill".
    However, when I go to save the file I'm presented with a warning about how using spot colors with transparency can "generate unexpected results".  In the save dialog box there is also a message that says "Overprints will not be preserved in areas that interact with transparency".  What does all of this mean for my poor little logo when it goes to press?
    Here's an example of what I'm trying to achieve.  The highlight is a simple gradient from white into the blue, but the shading is performed as outlined above.  Any insight would be appreciated.  Thanks!

    The way I understand it is he is using a Black gradient over Blue.  The White can be White, but in this case, probably 0% Black will work.  The Opacity Mask is probably considered "Transparent" along with the Black bevel elements, hence the warnings.  I wonder if those elements can be left without transparency and set to "Overprint Fill".  For instance, a 30% Black on a single bevel element could be set to O.P. with no transparency settings.  There will be no screen view of the effect, but it will separate as a 30% Black overprint.  Same with the gradient.  It will not preview with the effect, but will separate as a Black gradient set to overprint ( no Opacity Mask necessary ).  Or, keep everything the same except apply "Multiply" in the transparency setting ( along with Overprint Fill in the Attributes dialog ).  This gives you the preview of the effect, but the nagging warnings.

  • [CS5-JS] Link path question

    Hi,
    I made a script that needs the path of every link within the document.
    I tested it on a Mac (10.5.8) and when I look at links path (document.link.filePath) I see strings like these:
    Username:Desktop:WorkFolder:myFile.jpg
    It looks like paths starts from the user folder.
    I thought it was due to the fact that this user is not an administrator.
    So I tested the same script on another computer (10.6.4) but the path looks correct:
    MacintoshHD:Users:Username:Desktop:WorkFolder:myFile.jpg
    Obviously I have some problems while passing this value because in the first case it doesn't point to afile object...
    Is it a OS issue?
    I don't know how to solve it...
    Thanks!

    Hi
    I think you should use ObjectStyle!
    create an Object Style and set some transparency settings, and apply this to objects
    var my_obj_style;
    try { 
      my_obj_style = myDoc.objectStyles.add({name:"inner glow setting"});
    catch(e){
      my_obj_style = myDoc.objectStyles.item("inner glow setting");
    with (my_obj_style.transparencySettings.innerGlowSettings){
      applied = true;
      blendMode = 1852797549/*BlendMode.NORMAL*/;
      opacity = 100;
      noise = 0;
      effectColor = "Paper";
      technique = 2020618338/*GlowTechnique.PRECISE*/;
      spread = 79;
      size = '0.125in';
      source = 2020618594 /*InnerGlowSource.EDGE_SOURCED*/; 
    //Create the ovals and specify their size and location...
    var myLeftOval = myPage.ovals.add({geometricBounds:[2, -3, 2.75, -.75], fillColor:myDoc.colors.item("25% Black"),strokeColor:myDoc.swatches.item("None"), itemLayer:myDoc.layers.item("New Layer"),appliedObjectStyle:my_obj_style});
    var myCenterOval = myPage.ovals.add({geometricBounds:[3, -3, 3.75, -.75], fillColor:myDoc.colors.item("25% Black"),strokeColor:myDoc.swatches.item("None"), itemLayer:myDoc.layers.item("New Layer")});
    var myRightOval = myPage.ovals.add({geometricBounds:[4, -3, 4.75, -.75], fillColor:myDoc.colors.item("25% Black"),strokeColor:myDoc.swatches.item("None"), itemLayer:myDoc.layers.item("New Layer"),appliedObjectStyle:my_obj_style});
    I didn't apply object style to center oval, on purpose.
    Thankyou
    mg.

  • Another transparency question. CLARIFICATION NEEDED

    OH experts -- you who are unknown and unseen-- please know you are so appreciated!!
    so, here's the question
    have master pages set up with a picture, a screen over the picture in a certain spot.
    on regular pages i place my text on that transparent screen. When printing from my small printer at home, my type & graphics are looking screened; less than 100% of their ink value.
    how can i get these graphics/type to be ON TOP of the slightly transparent layer and print 100%??  why are they printing less than 100% when on the screened box from the master page? a
    rent graphics on master pages underlying?
    do they affect the graphics on top of them in the regular document???
    tia

    thanks for the info. its hard to be exact in describing what is going on!
    But after lots of testing, i've narrowed it down to some sort of print/color settings within my programs AI & Indd -- not a problem with the files. SO -- FOR THAT i'm glad!
    illustrator and indesign are printing my colors in a very muted fashion. Not black, but gray -- and a screened back color for every color.
    other programs print pages fine -- dark blacks and vibrant colors.
    SO -- as long as i know its not my file --  I can at least get through this project. -- i have a long line of things to figure out when i'm finished!
    thanks for your ideas earlier; i'll keep in mind how to use the picture within these forums.

  • Problem with exported jpegs from CS5 PSDs with transparent backgrounds

    I've detected an issue where when exporting jpegs from a CS5 PSD layered file with a transparent background, the jpegs don't have a pure white background (255, 255, 255). They seem to range from 250, 250, 250 to 253, 253, 253.
    LR3 with same export settings does not show this behavior--it's pure white: 255, 255, 255.

    Bill,
    Another very helpful solution and I appreciate knowing how to fix it in both applications. Thanks!
    Wolf

  • CS5 - CS4 backwards Comptibility Question

    Will CS5 be backwards comptible with CS4?
    I remember there were some pieces of Design Preium CS4 not fully compatible with the CS3 versions. I do some work at home for my workplace, so this could become a problem for me as work is looking at upgrading to CS5 in the near future.

    Sorry, didn't find the right venue on the first pass. The question
    is there now.
    If you can, delete this thread to avoid confusion.

  • CS5 export to transparent png - not working

    I have tried every think I know to get a png optimized transparently though fireworks cs5. I have read prior forum post, and watched several tutorials indicating ways to do this and when i try they do not work.
    I created the image in photoshop and exported it to a png file. Then i opened it in fireworks in an attempt to make the png much smaller. The image will be overlaying a patterned background on the web so needs to be totallly transparent. I've tried every combination of export option and still, when I put the image in my site there is a white background.
    Ive tried png-8  with alpha transparency and changed the matte to nothing. The main window in fireworks never gets rid of the white background and when i export it's still white on my site.
    I've tried png-32 with both alpha and index.
    When i use the png exported from photoshop on my site it looks exactly how I want it, but the file size it too large so that's why Im putting it in fireworks  but when i export it from there it's not transparent.
    help!!  - Kim

    Sorry, i was not certain about your level...
    You may be interested in knowing that another tool optimizes png files beyond what Fireworks can do - and I would avoid Photoshop's abysmal png export for production. As you are probably aware of, Photoshop's web export does not allow us to save an indexed png file with full transparency - something FW was always good at.
    Try Color Quantizer: http://x128.ho.ua/color-quantizer.html
    It allows for png files with full transparency to be saved with limited colour palettes exceeding 256 colours!  With CQ you can optimize png files to the fullest, while still retaining an excellent visual quality, since you can optimize easily to a limited palette of, for example, 512 or 1024 (or a custom number of colours). Extremely useful.
    It also optimizes the transparent areas, and will automatically remove any bitmap data from those areas (which are not visible).
    And, even better, a simple quality mask brush tool assures you have maximum control over the inclusion of even tiny splotches of colour you wish to retain.
    I have long left FW behind for my png optimization, because of CQ. It's brilliant, and still somewhat of a hidden gem. Try it out, you might be pleasantly surprised. And it's a free download.

Maybe you are looking for

  • Font problem - special characters sometimes displayed incorrectly

    I have a problem with the fonts installed on my computer: With some of them special characters (mainly german umlauts) get replaced by other fairly random symbols. My first guess was broken fonts, but the behaviour is completely inconsistent: In some

  • Badi screen exit

    hi all, i have to  add 2 custom fields in the Tcode COWBHUWA . I could not find any screen exits/badi . How can i add these fields . Please help out . Sridhar

  • EXT Display Format LabVIEW bug

    Up for grab, this easy bug (tested in LV 2012.0f3 (32 bit) on Windows XP) From a clean start, create a new VI, drop a "Power of x" function and create control for all input and output. Set the representation of the controls/indicators to be "Extended

  • Powering laptop on International travel

    Hello, I just bought a new Macbook & I wanted to know what do I need to get power or charge the battery during the flight. I will be flying on AA MD-80 (DC power ports) and on Cathay Pacific 747 (AC or EMpower) according to seatguru.com Thanks for an

  • Create domain failure when installing forms 11gr2

    I am trying to install forms 11gr2(11.1.2) 64 bit on a windows 7 64 bit OS. I have installed JDK 1.6.0_31 64 bit Java. I installed WLS 10.3.5 and did not run the quickstart or da any configuration. I installed forms 11gr2 without configuration option