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

PS Script - Render Video into Image Sequence multiple times

Community Beginner ,
Jun 21, 2017 Jun 21, 2017

Copy link to clipboard

Copied

Is there a way to render video in a script or batch so that the images will either save sequentially from the previous images saved, or into a new folder?

I am trying to render a video into an image sequence, than transforming position, and then rendering it again, a total of 900 times, but the images are saving over themselves or not saving at all.

I am able to render the video into an image sequence the first time, but when I try to run a script that will transform the image position, than render a second time, the image sequence does not render, or it renders over the previously rendered images.

It would be okay to have a continuous sequence past jpg 900.. 901.. 902.. 903..

Thanks,

Views

475

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

correct answers 1 Correct answer

Community Expert , Jun 21, 2017 Jun 21, 2017

I haven't checked if this is possible, but if you install the scriptListener plugin, then render a video, it should provide you with the code. Then you just need to exchange the file save info in that code with a variable that you can sequentially increase the file number.

Votes

Translate

Translate
Adobe
Community Expert ,
Jun 21, 2017 Jun 21, 2017

Copy link to clipboard

Copied

I haven't checked if this is possible, but if you install the scriptListener plugin, then render a video, it should provide you with the code. Then you just need to exchange the file save info in that code with a variable that you can sequentially increase the file number.

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
Community Beginner ,
Jun 21, 2017 Jun 21, 2017

Copy link to clipboard

Copied

Thanks Chuck,

That is a great idea. I downloaded script listener and gave it a shot. I got the code but unfortunately I don't know enough programming to manipulate the string. Do you? I'm guessing the line desc8.putString( idNm, """Line02.jpg""" );  would be the one to change.

Also once it's finished is it fairly easy to re-implement it back into an action?

Thanks!

var idExpr = charIDToTypeID( "Expr" );

    var desc7 = new ActionDescriptor();

    var idUsng = charIDToTypeID( "Usng" );

        var desc8 = new ActionDescriptor();

        var iddirectory = stringIDToTypeID( "directory" );

        desc8.putPath( iddirectory, new File( "/Users/jacksonnotier/Desktop/Dark Peony/JPG_Sequences/PS/Line_02" ) );

        var idsubdirectory = stringIDToTypeID( "subdirectory" );

        desc8.putString( idsubdirectory, """Line_02""" );

        var idNm = charIDToTypeID( "Nm  " );

        desc8.putString( idNm, """Line02.jpg""" );

        var idsequenceRenderSettings = stringIDToTypeID( "sequenceRenderSettings" );

            var desc9 = new ActionDescriptor();

            var idAs = charIDToTypeID( "As  " );

                var desc10 = new ActionDescriptor();

                var idEQlt = charIDToTypeID( "EQlt" );

                desc10.putInteger( idEQlt, 5 );

                var idMttC = charIDToTypeID( "MttC" );

                var idMttC = charIDToTypeID( "MttC" );

                var idNone = charIDToTypeID( "None" );

                desc10.putEnumerated( idMttC, idMttC, idNone );

            var idJPEG = charIDToTypeID( "JPEG" );

            desc9.putObject( idAs, idJPEG, desc10 );

        var idsequenceRenderSettings = stringIDToTypeID( "sequenceRenderSettings" );

        desc8.putObject( idsequenceRenderSettings, idsequenceRenderSettings, desc9 );

        var idminDigits = stringIDToTypeID( "minDigits" );

        desc8.putInteger( idminDigits, 7 );

        var idstartNumber = stringIDToTypeID( "startNumber" );

        desc8.putInteger( idstartNumber, 0 );

        var iduseDocumentSize = stringIDToTypeID( "useDocumentSize" );

        desc8.putBoolean( iduseDocumentSize, true );

        var idallFrames = stringIDToTypeID( "allFrames" );

        desc8.putBoolean( idallFrames, true );

        var idrenderAlpha = stringIDToTypeID( "renderAlpha" );

        var idalphaRendering = stringIDToTypeID( "alphaRendering" );

        var idNone = charIDToTypeID( "None" );

        desc8.putEnumerated( idrenderAlpha, idalphaRendering, idNone );

        var iduseDocumentFrameRate = stringIDToTypeID( "useDocumentFrameRate" );

        desc8.putBoolean( iduseDocumentFrameRate, true );

    var idvideoExport = stringIDToTypeID( "videoExport" );

    desc7.putObject( idUsng, idvideoExport, desc8 );

executeAction( idExpr, desc7, DialogModes.NO );

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
Community Expert ,
Jun 21, 2017 Jun 21, 2017

Copy link to clipboard

Copied

LATEST

Yes, that's it. I think you want to get rid of all the quotes and replace it with a variable.

Yes you can use it in an action. You just record the action and play the script.

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