Need a written conditional script which involves layer styles and pixelation. Possible payment may be negotiated.

I am a freelance illustrator who uses extensively layer styles in my workflow.  As the pixelation and the implementation of a new layer style is constant and ongoing, I would like a way to rationalize the actions of 3-4 that I use currently in a single conditional script.  I am currently using CS6.  Here's the description detailed of how I want the script to run:

(1) is the selected layer named "layer magic 1"?  Otherwise, go to the #2 line.  If Yes, go to the #8 line.

(2) is the selected layer named "magic layer 2?  Otherwise, go to the #3 line.  If Yes, go to the #8 line.

(3) is the selected layer named "layer Magic 3"?  Otherwise, go to the #4 line.  If Yes, go to the #8 line.

(4) is the selected layer named "layer Magic 4?  Otherwise, go to line 5-7 bolt torque.  If Yes, go to the #8 line.

(5) make the new layer.

(6) new name "Layer1" layer magic

(7) add the layer style (also nominated) "magical layer1.  Script concludes.

(8) the layer is empty?  If Yes, go to the #9 line.  Otherwise, go to line 10-12 bolt torque.

(9) queue dialog box: "the end of magic layers?  with the choice of the 'yes' or 'no '.

• If "Yes" is selected, the layer is removed.  Script concludes.

• If "no" is selected, the layer is kept (no change).  Script concludes.

(10) rasterize layer.

(11) rename the layer 'layer of paint '.

(12) merge the layer down.  Go to the line of 5-7 bolt torque.

I would prefer if possible javascript, because I will need for the script between my Mac desktop and my Windows Tablet of the Cintiq based on the port.  Any help would be greatly appreciated; It took me some time to try to learn the writing of scripts, but between labor day and the night in freelance, I managed only by creating extreme levels of frustration!  Laughing out loud!  PLEASE AND THANK YOU!

Good guys, has been able to play a bit with what I learned between both of you and others and come to this:

(1) function main() {}

2)

(3) var __indexOf = [] .indexOf | function (Item) {for (var i = 0, l = this.length; i)}< l;="" i++)="" {="" if="" (i="" in="" this="" &&="" this[i]="==" item)="" return="" i;="" }="" return="" -1;="">

4)

(5) var makeNewLayer = function() {}

(6) var newLayer = doc.artLayers.add ();

(7) newLayer.name = 'magic layer1.

(8) newLayer.applyStyle('magic layer1');

(9) doc.activeLayer = newLayer;

10)            }

11)

(12) var doc = app.activeDocument;

(13) lay = doc.activeLayer,

(14) names = ['magic layer1',

"(15) ' magical layer2.

(16) ' magical layer3.

["(17) ' magic layer4"];

18)

(19) if (__indexOf.call (name, lay.name)< 0="" )="">

(20) newLayer = doc.artLayers.add ();

(21) makeNewLayer();

(22) return;

23)            }

24)

(25) if (doc.activeLayer.kind == LayerKind.NORMAL & doc.activeLayer.bounds [2] == 0 & doc.activeLayer.bounds [3] == 0) {}

(26) var dialog = confirm (the ' magical sleep end? ");

(27) if (dialogue) {}

(28) app.activeDocument.activeLayer.remove ();

29)                }

(30) return;

31)            }

(32) var idrasterizeLayer = stringIDToTypeID ("rasterizeLayer");

(33) var desc5 = new ActionDescriptor();

(34) var idnull = charIDToTypeID ("null");

(35) ref4 var = new ActionReference();

(36) var idLyr = charIDToTypeID ("Lyr");

(37) var idOrdn = charIDToTypeID ('Ordn');

(38) var idTrgt = charIDToTypeID ("Trgt");

(39) ref4.putEnumerated (idLyr, idOrdn, idTrgt);

(40) desc5.putReference (idnull, ref4);

(41) var idWhat = charIDToTypeID ('what');

(42) var idrasterizeItem = stringIDToTypeID ("rasterizeItem");

(43) var idlayerStyle = stringIDToTypeID ("layerStyle");

(44) desc5.putEnumerated (idWhat, idrasterizeItem, idlayerStyle);

(45) executeAction (idrasterizeLayer, desc5, DialogModes.NO);

46)

(47) doc.activeLayer.merge ();

(48) doc.activeLayer.name = 'base paint layer;

(49) makeNewLayer();

(50) return;

51)

52)        }

53)

(54) main();

I know it's a little ugly code lines 32-45, but (through other channels, thank you JJMack & c.pfaffenbichler!), I realized that there is no way to script, the rasterization of a "layer Style" others that using ScriptingListener.plugin.  DBarranca  Yes... I realized a little I "screwed the dog" on the diaper change after that I played with him for a while.  Also a little, visited account that the "new layer" you were a little enough to add was not going to solve my problem. ended up having to add a "new layer" on line 20.  Everything seems to work exactly as I intended at the moment.  I DO, however, like the idea of having an error message "cannot find the magic layer1 Style".  How would I want to add that in?

Thanks again,

-Eric P

Tags: Photoshop

Similar Questions

  • Can I copy the image adjustments in another image if I didn't not use layer styles and adjustment layers in Photoshop?

    I have several photos captured in similar conditions and have already adjusted one of the photos for my taste. I am a complete newbie and have just read layer styles and adjustment layers and did not them you use while editing. I simply clicked on the Image > adjustments and went from there. Would be really nice if there was a way I could 'redo' these adjustments on the other photos that I stupidly forgot precise adjustments I made. Is this possible? I use Photoshop CC 2014.

    Sorry but no, this is not possible. It was possible, if you had used adjustment layers instead of making the adjustment directly on the image.

    Using adjustment layers is the best way forward: it is non-destructive; It can always be changed later or even completely deleted, and he has a mask that allows you to restrict the adjustment on the only parts of the image. And it can be saved for later reuse...

  • How to set a layer style and not have some shape layers overlap?

    I don't know how to explain this very well, but I've created a mp4 to demonstrate what I worked on. I want to make sure when I apply a shadow effect drop, that all layers are affected but aren't above the knees. It is the video.

    432ab2436daeb31bba0be2f195b072d1.png
    Shape layer 2 are the lines.

    When you want to delve into problems the first thing we do is select all the layers that you have problems with, press the U key to reveal all changed properties and analyze what you see in the timeline panel. I guess right here because you don't have given us no indication of your workflow, but it makes sense that you have applied the two-tier drop shadow layer style. I'm just guessing that you used the Layer Styles and not the effect due to the title of your post.

    Since you already have the animation and now want to add a drop shadow the best thing to do would be to compose two layers prior shape and then apply a layer style or effect to the demo. Looks like you have the shadow applied to all text as layers so it would make sense to dial previously all layers, you want to have

    I probably would have used a rectangle rounded, converted the rectangle rounded for a Bézier path and the shape of the path of animation and used paths pads to get the circle to rectangle rounded on a layer of simple shape animation but I certainly would be made first before you add the same effect to all layers.

  • do I need Windows PowerShell integrated scripting tool for home computer and access to the internet, powershell

    do I need Windows PowerShell integrated scripting tool for computer and internet access

    No you didn't he need for home computer and internet access

  • Can someone help me find my lost layer styles and the photo effects in the effect controls panel?

    I use the trial version of Photoshop Elements 9. I downloaded and tried to install a glitter style. When I returned to my workspace I had no layer styles or the photo of the effects in the Panel effects... not one. The filters are the only ones to be there now. What have I done?

    Exit the editor, then go to C:\Documents and Settings\All Users\Application Data\Adobe\Photoshop Elements\9.0\Locale\en_US (or your location) and delete mediaDatabase.db3. When you restart the editor, give it time to rebuild the content panel until you try to use the PSE.

  • a script which communicates with AI and ID

    Hello community

    I'm currently trying to wrap your head around the Extendscript Toolkit. When I write a code I specified for the program I want to use by selecting it from a drop-down list, however I want to use two different programs at the same time. I want to copy all pageitems a page in indesign, and then paste it on a new page in illustrator. Anyone know how I can have access to both programs at the same time?

    I wrote the bit to follow who seems to give me the two application I want to use, but the content of these objects is not the same if you write 'App' with for example indesign selected as target your application.

    main() {} function

    inApp var = this.indesign11;

    var illApp = this.illustrator;

    }

    If I write inApp.activeDocument the Toolbox just ignore.

    If anyone has any suggestions I'd be happy to hear.

    Thank you

    Dane

    Hi Dane

    You use VBS in the ESTK which will not work.

    The ESTK only handles javascript. The javascript code can execute vbs using app.doScript.

    The "correct" to communicate with the ID and AI way is with BridgeTalk.

    There are examples in the manual script and on the forum.

    Good luck

    Trevor

  • Layer Style STROKE Pixel Bug?

    I found at random times when I draw a rectangle with the rectangle tool and then use style layer to a 1 pixel border, the border may have a fade on each side of that 1 pixel and it became 2 pixels.  It does not appear on all four sides, just randomly left, right, up, down...

    To better illustrate the problem, I have attached an image and it has zoomed in to show the problem... You see how left and down is 1 pixel but not top and right?  It is strange and never arrived in CS4... I'm using CS5 passing... Someone at - he experienced this?

    bug.jpg

    You must check the alignment of the pixels in the rectangle shape tool options:

  • Script to search for text and remove the hyperlink and characterstyle link which applies (back to normal)

    I need help with my script to search for text and remove the hyperlink and characterstyle link which applies (returns the normal text).

    I can't do either as I want.  I want the user to be able to type in a dialog text they want to search for, do search this text IGNORING case (case insensitive) and then for all instances that he find it, remove character styles that are applied to the (set to [none]) and delete the hyperlinks.

    My code seems to define the character style [None], when I click on the text and look at the window of character Styles, BUT all old styles (font color, underline) are always applied and removed not as I want.

    Also, I can't understand how to remove all of the old links.

    Here is my code:

    myDocument var = app.activeDocument;

    var noneStyle = myDocument.characterStyles.item ("[None]");

    var myFindVal = "";

    var myErrorText = "";

    var myErrorCount = 0;

    myDialog = app.dialogs.add var ({name: "search user submitted text and delete hyperlinks from objects found.", canCancel: true});

    {with (MyDialog)}

    {with (dialogColumns.Add ())}

    {with (borderPanels.Add ())}

    staticTexts.add ({staticLabel: "search and delete hyperlinks for :"}); "})

    myTextBox var = textEditboxes.add({minWidth:100});)

    }

    }

    }

    If (myDialog.show () == true) {}

    myFindVal = myTextBox.editContents;

    doSearchAndReplace();

    app.findTextPreferences = NothingEnum.nothing;

    app.changeTextPreferences = NothingEnum.nothing;

    If (myErrorCount == 0) {}

    Alert ("done! ("Part of the links have been removed for: '" + myFindVal + ""! "");

    }

    else {}

    Alert ("last error: '" + myErrorText + "' & number of errors:" + myErrorCount);

    }

    }

    myDialog.destroy ();

    function doSearchAndReplace() {}

    app.findTextPreferences.findWhat = myFindVal;

    app.findChangeTextOptions.caseSensitive = false;

    app.findChangeTextOptions.includeFootnotes = false;

    app.findChangeTextOptions.includeHiddenLayers = false;

    app.findChangeTextOptions.includeLockedLayersForFind = false;

    app.findChangeTextOptions.includeLockedStoriesForFind = false;

    app.findChangeTextOptions.includeMasterPages = false;

    app.findChangeTextOptions.wholeWord = false;

    var myFoundItems = myDocument.findText ();

    for (i = 0; i < myFoundItems.length; i ++) {}

    myRemoveHyperlinkAndStyle (myFoundItems [i]);

    }

    }

    function myRemoveHyperlinkAndStyle (myFoundItem) {}

    try {}

    myDocument.hyperlinkTextDestinations.item (myFoundItem) .remove ();

    myDocument.hyperlinkTextSources.item (myFoundItem) .remove ();

    myDocument.hyperlinkURLDestinations.item (myFoundItem) .remove ();

    myFoundItem.applyCharacterStyle (noneStyle);

    }

    {catch (MyError)}

    myErrorCount ++;

    myErrorText = MonErreur;

    }

    }

    Hello

    Right, some hyperlink might be a pageItem...

    expand the 'if' condition with:

    If (myHyp [len].source.hasOwnProperty ("sourceText") &... content ==...)

    Jarek

  • How the active layer Style?

    How the active layer Style and the value of the property?

    I don't know of any way to directly turn on the Layer Styles. You can use the menu command:

    {

    myLayer = app.project.activeItem.selectedLayers var [0];

    app.executeCommand (app.findMenuCommandId ("shadow"));

    myLayer.layerStyle.dropShadow.distance.setValue (10);

    }

    This assumes that the computer has the focus, and the layer is selected. You can force these conditions if you have CS6 (see the object viewer in the Guide scripts CS6).

    Dan

  • Photoshop CS5 x 64 crash when changing the layer styles

    Hey there,

    I searched and searched through the entire interweb, but almost no one seems to have never had such a problem, so I think it is the right place to ask and hope to be helped . Short version is: Photoshop CS5 (x 64) is constantly crashing when you change a layer style.

    Recently, I installed my CS5 Design Premium on a new laptop (Fujitsu Lifebook AH351) and I have serious problems with Photoshop CS5. On the first run, everything was fine, and he keep like this for a while. Now every time I try to edit a layer style Photoshop crashes immediately. I did not need to change anything, just open the layer style, press OK and Photoshop has disappeared. I can work around by resetting the preferences that works until the next reboot, no matter if I change anything on the settings or not. Tried this on the initial version of the PS and the last update (12.0.4). Once I have reset settings yet, I can work again on the layer styles. Any of you have a similar problem or an allusion to what I could look at?

    The Lifebook has of a decent feature which I think somehow the culprit in this case: it has an on-board graphics unit and a separate GPU (nVidia GForce GT 525 M) that can be added in on a program basis. Indeed, Photoshop recognizes and allows me to enable the OpenGL functions as well, so from there, it seems. The internal GPU cannot be disabled because connect you your monitors.

    Some data on my system:

    Fujitsu Lifebook AH531

    • Intel® Core™ i5 - 2410M
    • RAM: 8 GB DDR3 1333 MHz
    • 750 GB SATA HDD 5400 U/Min
    • Windows 7 Home Premium x 64 (updated)
    • NVIDIA® GeForce® GT 525M with 1 GB of VRAM

    Photoshop CS5 x 64

    • no plugins to use/install
    • any settings not changed, not even shortcuts

    Thanks in advance

    enoversum

    WindowBlinds was probably to blame.  It's a bad app that changes the window settings and made generally bad things for the environment of the user interface to achieve a different look.

    There may be more options for things you can do (bad) to Windows, such as the screws of the metric of the display with the software from StarDock, simply because Windows is more popular - but if you don't about frivolous things with your system it can be as clean and steady work as a Mac system , if not better.  Mac have many of their own problems.

    -Christmas

  • Action Script 3 Code to play and stop a file Fla or external Swf using game, stop button, in, the FLA file

    Thank you for all the answers before.

    I need a code Action Script 3 humbly for playing and stopping at a file Fla or Swf external button Play or Stop in Parent Fla or Swf file.

    I should have the opportunity to revisit the Fla of Parent file of the external file using the key.

    For example: I 'Introduction' Fla that has a button to play an external Fla called "set up."

    And in the 'set up' ALF, there is a button to play 'Introduction' in Florida.

    Kind regards

    God bless you

    the eaiest way is to use the content property of your charger (cast as sprite or movieclip) to reference the main storyline in the loaded swf file, and to use parent.parent to the timeliine of reference containing your charger (assuming that it has been added) go up again as the appropriate object.

  • Layer style

    Watched a video on the layer style and he asked me to select an inner glow and change the blending mode and choke, then instantly as the blend mode; Once I was able to find. Any suggestions on how to find it please.

    Layer > layer Style > inner glow:

  • Copy CSS not to copy Layer Styles

    For the last few hours I tried to use the option to copy CSS, something I was not aware of so far, but seems to be an absolutely amazing feature, but it doesn't seem to be copying my layer styles, or a large part of what anyone else.

    In my bed, I have an inner glow, overlay color and outer glow, but when I copy the CSS, I get this:

    .Rectangle_3 {
      background-color: rgb(0, 0, 0);
      position: absolute;
      left: 15px;
      top: 470px;
      width: 427px;
      height: 175px;
      z-index: 102;
    }
    

    Of course, this does contain none of these layer styles and contains only the basic shape information.

    Is there something that I simply forgot to turn it on? Exactly, what is happening?

    Well, you can not copy that does not support CSS. These things work completely differently when creating using web technologies. An outer glow is for example just a shadow double and some blend modes are not supported by browsers, too. I'm afraid it's one of those terrible misunderstandings "I can make impressive websites using the PS". You can just avoid reading on what actually works on the web before you go trigger happy on the design of things if you want to keep things dynamic and editable even in the design of your site. Not to say that some poor engineer PS could not write a lot of code just to give you a part of that kind of thing, but the web is still undermined by differences in rendering in different browsers as well as various support for some functions, it is an eternal battle and it can work just never completely.

    Mylenium

  • Layer styles Photoshop 2015 not appearing is not in CS6 on a pixelated text layer

    It made by a mistake of text at the beginning when I open it. But if the layer is rasterized should elsewhere?

    Thanks in advance

    If it's a layer style and your text has a fill (all-solid), you can put the text layer in a group. Add your new layer for the group style. Add the desired above the Group fill color and hang it on the group.

    If the text has been rasterized, you can just lock the transparency of the layer and then fill the entire layer with any color you want also, then add a new layer style.

    These two things will work with CS6.

  • layer style settings to remove the differences between 2 images.

    Hello people,

    I have a question:

    Is it possible to get the layer style settings when I have 1 picture with the layer style and 1 without him.

    Let's say I have an icon that's just a House.

    [img] http://S6.PostImage.org/xfpzl5hl9/image.PNG [line]

    And I have a House with outer glow.

    [img] http://S6.PostImage.org/h6un7v2a5/0_h.PNG [line]

    Is it possible to get the parameters used in the outer glow?

    hosts Ruud.

    You will not get the real digital settings, but if you load the two layers in the same document and change the blending mode of the layer that is greater than the difference, you can see the difference between the two images.  So:

Maybe you are looking for

  • Can I change on Satellite C660/C660D WLAN card?

    Hello. I just want to ask if possible to change my wireless card on this laptop, it s (satelliteC660/C660d)?

  • HP7520: HP7520 - scan to email problel

    Hi, I read a lot of emails about the scanning to email questions. I have the same problem as others. Scanning to email worked perfectly well for months. Now he returns constantly with the message "unable to connect to wireless services.I tried all th

  • Original windows XP CD crushed

    I bought a CD of Windows XP genuine year 2004 in Delhi, India. A few months back somehow got CD cracked or crushed (I actually have 2 pieces of him now). I have the OEM - key CD for it. I want to know if there is a way to get a rescue for the same co

  • Windows XP does not start normally, without failure or last known good configuration mode

    I was installing Intel chipset drivers and installing, I had a blue error screen IRQL_LESS_THAN_OR_EQUAL, or whatever it was and had to restart. Now that the system hangs when booting normally in safe mode (after loading, or train load... system32\dr

  • Installations of Windows 7

    Hi, I bought laptop Lenovo with pre-installed Windows 7 Home Premium in 2010. The product key is on a sticker of the laptop. I have not noted the key before and now it is faded. I can see only a few among the 25 letters. I installed the Microsoft Dia