• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Does Photoshop support creating and manipulating a Video Timeline in javascript?

New Here ,
Apr 20, 2024 Apr 20, 2024

Copy link to clipboard

Copied

Hi, I have over 1000 photos that each have 30-40 layers that I want to animate - for instance, with photo1, show 3 of 30 layers, animate those layers, then export to an MPEG file… then pick a different 3 layers in photo1 and do the same, etc.. up to 30 layers just for photo1. Then do the same for all 1000 photos.. With all the photos I have, so many layers for each and so many animations to create I was hoping to create a javascript to do all this work of creating a video timeline, adding layers, set timeline positions/durations, etc… then I will review and save each animation myself (I’ve learned I can’t export to an mpeg file via scripting - bummer). I asked ChatGPT and it provided sample code showing that it’s possible to create a timeline, create video layers, move layers around, set durations, etc… but I get an error right after creating a timeline object when trying to add a layer to the object - e.g: var doc = app.activeDocument; var timeline = doc.timeline; timeline = .timeline.addLayer (myLayerObjectHandle); //this is the line I get an error The error I get is “undefined is not an object” on the 3rd line. I’ve also tried: var doc = app.activeDocument; var timeline = doc.timeline; var videoTrack = timline.videoTracks.add(); //same error here In chat messaging with Adobe support they say it IS possible but they didn’t have samples to show or links to developer docs. I don’t mind using a different app perhaps Affect Effect? but really hoping to use Photoshop. In looking at Adobes developer object model, I don’t see a doc reference for a timeline method/function off either the app or document(s) objects. Any help here would be fantastic. Thank you

Views

89

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Apr 20, 2024 Apr 20, 2024

Copy link to clipboard

Copied

LATEST

@Bret22687151c0y1 

I've moved your post from Using the Community (for forum questions) to Photoshop for you.

Jane

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines