Search found 306 matches

by Kukurykus
Sun Sep 13, 2020 7:19 am
Forum: Help Me
Topic: Duplicate layer when a file are open
Replies: 2
Views: 70

Re: Duplicate layer when a file are open

Code: Select all

if (documents.length && (lrs = (aD = activeDocument).layers).length < 2 && (lyr = lrs[0]).isBackgroundLayer) aD.activeLayer = lyr.duplicate()
by Kukurykus
Tue Aug 25, 2020 10:11 am
Forum: Photoshop Scripts
Topic: Per Layer Guides.
Replies: 9
Views: 3368

Re: Per Layer Guides.

Here that doesn't work: Per Layer Guides., but here you can download it from: Oct, 1 & 2, 2013
by Kukurykus
Sun Aug 23, 2020 4:33 pm
Forum: Help Me
Topic: How to remove xmp metadata?
Replies: 2
Views: 665

Re: How to remove xmp metadata?

fle = File('~/desktop/someFile.tif'); if (!ExternalObject.AdobeXMPScript) ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript') xmp = new XMPFile(fle.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE) xmp.putXMP(new XMPMeta()), xmp.closeFile(XMPConst.CLOSE_UPDATE_SAFELY) In case...
by Kukurykus
Thu Jul 16, 2020 7:38 am
Forum: Help Me
Topic: Setting position on live shape layer
Replies: 2
Views: 216

Re: Setting position on live shape layer

Code: Select all

b = (lyr = (aD = activeDocument).activeLayer).bounds, lyr.translate(-b[0] + 10 , -b[1] + 10)
by Kukurykus
Wed Jul 08, 2020 8:04 am
Forum: Help Me
Topic: [solved] [Python] How to access Smart Objects?
Replies: 2
Views: 242

Re: [Python] How to access Smart Objects?

Before you create smart object create layers composition for layers. Create then from them SO and switch visibility without opening embedded layers by properties panel. Probably you can also open smart object to set layers compositions for the first time, then save document once for keeps and access...
by Kukurykus
Mon Jul 06, 2020 7:12 am
Forum: Help Me
Topic: This is a question about Photoshop script
Replies: 2
Views: 255

Re: This is a question about Photoshop script

Your both steps are not clear. Please explain it better, maybe by posting relevant screenshots from manual work.
by Kukurykus
Sat Jul 04, 2020 8:50 pm
Forum: Help Me
Topic: Flip Window
Replies: 2
Views: 262

Re: Flip Window

You must do it from Action panel to see effect in Script Listener. Choose from drop down menu Insert Menu Item.
by Kukurykus
Sat Jun 13, 2020 5:58 pm
Forum: Help Me
Topic: Add Stroke to Text Layer
Replies: 2
Views: 325

Re: Add Stroke to Text Layer

If I correctly understand 'compact' word, this is more comapact, but yes to avoid rasterizing you have to apply effects, but then you finish up with more code. If you later won't need to edit text, then you can use DOM method.
by Kukurykus
Sat Jun 13, 2020 4:19 pm
Forum: Help Me
Topic: Add Stroke to Text Layer
Replies: 2
Views: 325

Add Stroke to Text Layer

by mikedpe » Sat Jun 13, 2020 4:44 pm (originally at: https://www.ps-scripts.com/posting.php?mode=reply&f=66&t=40660&p=169778#p169778) I can create text layers and add text to them but do not know how to add a stroke to the layer in javascript. As usual help appreciated Mike (aD = activeDocument).ac...