4 Replies Latest reply on Sep 7, 2012 2:57 AM by piggychops

    Multiple multi state objects

    piggychops Level 1

      Hello all,


      I want to export the multiple Multi state objects from Indesign.


      var mso_total_count = MSO.states.length - app.documents[0].multiStateObjects.length;

           for (var i = 1; i <= mso_total_count; i++)   


                  var imageName = imgName_mso+".png";

                  imageSavePath = File( "~/Desktop/omnion_mw/"+nav_Project_Name+"/images/"+ imageName); 

                  MSO.states[i].pageItems[0].exportFile(ExportFormat.PNG_FORMAT, imageSavePath);

                  var add_event = MSO.states[i].pageItems[0].addEventListener;



      By using this i am getting images of only one multi state object. If i have multiple multi state objects are there like Muti-state 1, Multi-stste 2 etc it doesnt work.


      Can anyone help me on this.