8 Replies Latest reply on Mar 15, 2013 4:10 AM by Bill joy

    How set MoviePosterType ?

    Bill joy Level 1

      I am try to set MoviePosterType NONE  but it is not set.

      my script is :

       

      var myDocument = app.documents.add();

      var myDocument = app.documents.item(0);

      var myPage = myDocument.pages.item(0);

      var myFrame = myPage.rectangles.add({geometricBounds:[72, 72, 288, 288]});   

      var myMovie = myFrame.place(File("/c/mentors_es.flv"))[0];

      myMovie.moviePosterType=1852796517; //for NONE

       

      I am not understand what is problem.

      Thanks.

        • 1. Re: How set MoviePosterType ?
          Jump_Over Level 5

          Hi,

           

          try modified:

           

          var myDocument = app.documents.add();

          var myPage = myDocument.pages.item(0);

          var myFrame = myPage.rectangles.add({geometricBounds:[72, 72, 288, 288]});   

          myFrame.place(File("/c/mentors_es.flv"));

          myFrame.movies[0].moviePosterType=1852796517; //for NONE

           

          rgds

          Jarek

          1 person found this helpful
          • 2. Re: How set MoviePosterType ?
            Bill joy Level 1

            Thanks Jump_Over for your reply

            I try as you told

             

            #target indesign

            var myDocument = app.documents.add();

            var myPage = myDocument.pages.item(0);

            var myFrame = myPage.rectangles.add({geometricBounds:[72, 72, 288, 288]});  

            myFrame.place(File("/c/mentors_es.flv"));

            myFrame.movies[0].moviePosterType=1299216505;  //For PROXY_IMAGE

            myFrame.movies[0].posterFile = File("/c/image.jpg");

             

            But it not work

            I also try

            myFrame.movies[0].moviePosterType=1852796517; //for NONE

             

            But it not set. Always take default value "From Current Frame".

            I am not understand why it is not work ?

             

            Thanks.

            • 3. Re: How set MoviePosterType ?
              Marijan Tompa [tomaxxi] Level 4

              It's a bug but only on Mac OS in CS5 and CS5.5! (if I remember correctly)

              No way to change it through scripting.

              Only way is to export frame as InDesign Snippet,

              edit it (it's simple XML file), and than place snippet back.

               

              Hope that helps..

               

              --

              Marijan (tomaxxi)

              http://tomaxxi.com

              1 person found this helpful
              • 4. Re: How set MoviePosterType ?
                Bill joy Level 1

                Thanks Marijan for reply

                 

                But I am using CS5.5 on Window Xp.

                 

                 

                Thanks.

                • 5. Re: How set MoviePosterType ?
                  Jump_Over Level 5

                  Hi,

                   

                  All 3 choices work on my side:

                  myFrame.movies[0].moviePosterType=1852796517;  //For NONE

                  myFrame.movies[0].moviePosterType=2020623970;  //For STANDARD

                  myFrame.movies[0].moviePosterType=1298558310;  //For FROM_MOVIE

                   

                  for the 4th one use only:

                  myFrame.movies[0].posterFile = File("/c/image.jpg");

                   

                  Just omit setting a type. It works on my side...

                   

                  rgds

                  Jarek

                  • 6. Re: How set MoviePosterType ?
                    Bill joy Level 1

                    Thanks Jump_Over for reply

                    I try it

                    #target indesign

                    var myDocument = app.documents.add();

                    var myPage = myDocument.pages.item(0);

                    var myFrame = myPage.rectangles.add({geometricBounds:[72, 72, 288, 288]}); 

                    myFrame.place(File("/c/mentors_es.flv"));

                    myFrame.movies[0].moviePosterType=1852796517;  //For NONE

                     

                    for to set Poster type None but not sucess.

                    I am not under stand why it is not work on my side.

                    I am using InDesign CS5.5 on Window XP.

                     

                    Thanks.

                    • 7. Re: How set MoviePosterType ?
                      Jump_Over Level 5

                      Hi,

                       

                      Did you try to inactivate a last line and make it manually from UI?

                      It works this way?

                      • 8. Re: How set MoviePosterType ?
                        Bill joy Level 1

                        Thanks jump_Over for reply

                         

                        I try manually it and it work

                        my steps are :

                        After creating a text frame I place " c : mentors_es.flv" then

                        Window(tool menu)--> interective-->media.

                        Then Choose Poster : None.

                         

                        It set none.

                        If i set it Choose image....from "c:image.jpg" then it place image.

                         

                        Thanks.