Search found 3 matches

by blastframe
Sat Sep 28, 2019 9:09 pm
Forum: Help Me
Topic: Getting Layer Duration in Photoshop Timeline
Replies: 1
Views: 3232

Getting Layer Duration in Photoshop Timeline

Hello, I'm trying to write a script that changes the duration of a layer in the Photoshop timeline. I haven't been able to find ANY information about the Timeline in the API: I have looked for scripting information about the Timeline in Photoshop Scripting Basics and Adobe Photoshop CC JavaScript Re...
by blastframe
Wed Feb 20, 2019 12:57 am
Forum: Help Me
Topic: Batch rename layers/layer comps with auto numbering
Replies: 2
Views: 5684

Re: Batch rename layers/layer comps with auto numbering

Here is my script for renaming layer comps #target photoshop function renameLayerComps() { var activeDoc = app.activeDocument; comps = activeDoc.layerComps; function pad(n, width, z) { z = z || '0'; n = n + ''; return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n; } var dialog ...
by blastframe
Wed Feb 20, 2019 12:55 am
Forum: Help Me
Topic: rename layer comps
Replies: 12
Views: 13346

Re: rename layer comps

Here is my version. It renames the active document's layer comps by a prefix of your choice and the index. #target photoshop function renameLayerComps() { var activeDoc = app.activeDocument; comps = activeDoc.layerComps; function pad(n, width, z) { z = z || '0'; n = n + ''; return n.length >= width ...