• 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

121

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