Photoshop Script - New layer below current layer -
I'm starting a Photoshop and currently using Version Photoshop CS3. I use keyboard shortcuts at all times to accelerate the design process like creating new layers etc.
However, one command I think, Photoshop should create a new layer below the current work layer and therefore I can not assign it via a shortcut.
I have to create a new layer above the current layer and then manually drag it from the current layer which I think can be automated through action or scripting, both
Thanks dkj
It can be scripted with:
< Code> // Create a new layer below the current active layer and make it "bottom layer" calllayerBelowCurrent ("bottom layer"); Create functionRearBelHost (astring) {var currentActivelayer = app.activeDocument.activeLayer; Var idx = getLayerIndex (current activator); // Get a reference for the active layer var layer Reef = app. Active Document Layers [idx]; // Create a new art layer, by default var newLayerRef = app.activeDocument.artLayers.add (); // move the new layer after the first layer first. Layerf.mov (Layeraf, Element Placement. PLACE Fitter); } Function getLayerIndex (ref) {// all layers var numOfLayers = id.x.active.document.layers.length idex return; // Stack down from work! For (var i = numOfLayers -1; i> = 0; i--) {var tempLayer = app.activeDocument.layers [i]; If I return (tempLayer == ref) (back to i (var j = numOfSubLayers -1; j & gt; = 0; j--) {var tempSubLayer = subDoc.layers [j] if (tempSubLayer == ref) is returned J}}}}Then you can record this script as a verb and insert a keyboard short cut.
Comments
Post a Comment