Number of actual state of multi-state objects

Hello,
is it possible create automatic number of actual state and automatic total number of states in mulsti-state objects?
Thank you for your answer.
Martin

@Martin – the following script will show you an alert message of the active state of all first-level MSOs in the active document (it will not show nested MSOs like in groups, MSOs anchored to text frames, MSOs inside MSOs etc.pp.).
Screen shot of the result message, that can be selected and copied to the clipboard for further use:
Code is ExtendScript (JavaScript):
//ShowActiveStatesForAllFirstlevelMSOs_DOCUMENT.jsx
//Uwe Laubender
//See discussion at:
//http://forums.adobe.com/thread/1365865?tstart=0
* @@@BUILDINFO@@@ ShowActiveStatesForAllFirstlevelMSOs_DOCUMENT.jsx !Version! Sat Jan 04 2014 11:41:46 GMT+0100
if(app.documents.length === 0){alert("No document open. STOP.");exit()};
if(app.documents[0].multiStateObjects.length === 0){alert("No First Level MSOs found. STOP.");exit()};
var d=app.documents[0];
var allLevelOneMSOs = d.multiStateObjects;
var allLevelOneMSONames = d.multiStateObjects.everyItem().name;
var allActiveStates = d.multiStateObjects.everyItem().activeStateIndex;
var numberOfStates = new Array();
var nameOfActiveState = new Array();
for(var n=0;n<allLevelOneMSOs.length;n++){
    numberOfStates[n] = allLevelOneMSOs[n].states.length;
    nameOfActiveState[n] = allLevelOneMSOs[n].states[allLevelOneMSOs[n].activeStateIndex].name;
var resultArray = new Array();
for(var n=0;n<allLevelOneMSOs.length;n++){
    resultArray[n] = [
        "\""+allLevelOneMSONames[n]+"\""+
        "\t"+"\""+nameOfActiveState[n]+"\""+
        "\t"+"is active state: "+"\t"+(allActiveStates[n]+1)+" of "+numberOfStates[n]
resultArray;
scrollableAlert("Active states of all First Level MSOs in document",resultArray,false,"Cancel");
function scrollableAlert(titleString/*String*/,inputArray/*Array*/,listActive/*[true] || [false]*/,buttonText/*String*/){
    //Basic function by Peter Kahrel, enhanced by Marijan Tompa [Tomaxxi] at: http://tomaxxi.com/2010/07/scrollable-alert/
    //Further enhanced by Uwe Laubender with a additional argument: listActive, buttonText
    var inputArrayAsString, w, list
    if(inputArray instanceof Array){
       inputArrayAsString = inputArray.join ("\r")
    else{inputArrayAsString = inputArray};
    w = new Window("dialog", titleString);
    list = w.add("edittext", undefined, inputArrayAsString, {multiline: true, scrolling: true});
    list.maximumSize.height = w.maximumSize.height-100;
    list.minimumSize.width = 540;
    list.active = listActive;
    w.add("button", undefined, buttonText, {name: "ok"});
    w.show();
}; //END OF function scrollableAlert()
If you have questions about this script or want a script that is more functional, just send me a personal message (PM) via this forum.
Uwe

Similar Messages

  • How to highlight State of Multi-State object?

    hi,
    I have created 3 states of object State1, State2, State 3. and want to highlight state in object state panel programmatically. can any one have idea abt it?

    @Priyanka – you did not mention a specific scripting language.
    In ExtendScript (JavaScript) you can set the "active" property of the 3rd state of your MultiStateObject to value "true".
    //ExtendScript (JavaScript) example
    //Make sure a MultiStateObject is selected; nothing else, then run this JavaScript:
    app.selection[0].states[2].active = true;
    The expression from left to wright (for lurkers who never saw a line of code):
    app => application (that's InDesign, of course)
    selection => your current selection in the UI (could be one item, could be many)
    [0] => index number 0 is the first item in your selection; be cautious with the expression "first", it depends on the InDesign version what that does exactly mean, if you selected more than one object
    states => obviously the "state" object (always with the plural "s", it's the collection of all states in that selected MultiStateObject)
    [2] => index number 2 is the 3rd element of the states collection
    active => property for the active status; boolean, could be "true" or "false"
    = => with the "=" sign, you are setting the value
    true => the value of the property; self-explanatory, I hope…
    ; => end of expression, all that comes after is a different expression.
    The different parts are held together with a dot-notation. The index  is directly glued to its object, no dot notation between object and index.
    If you want learn more about ExtendScript and the InDesign DOM see Jongwares' documentation at:
    http://www.jongware.com/idjshelp.html
    Uwe

  • Is there a maximum number of "multi state objects" per article? Indesign keeps crashing

    Hi, i have 12 multi state objects on a page, and indesign keeps crashing.
    i know this seems like a high number, but I have done this to create a work around - ticker (like an old style airport board e.g. https://www.google.co.uk/search?q=airport+board&espv=2&biw=1306&bih=653&source=lnms&tbm=is ch&sa=X&ei=TkYUVb3ZJIb0PJ7DgZg… each set of 3 creating one graphic e.g. 3.35
    After creating these Indesign keeps crashing when i try to preview?
    Any advice would be appreciated.

    It sounds like you're running in to a memory problem: Memory Handling in DPS
    That said, usually multiple MSOs on the page don't usually cause memory problems because only the first state of the MSO is loaded into memory. If the first state of each MSO is loading a web overlay displaying ticker information, then that's the most likely culprit. Consider redesigning the page so that only a few tickers are loaded into memory and the user needs to tap to reveal additional tickers.

  • Can I assign the text in a multi-state object?

    I want to assign InCopy files to the captions that are part of a slideshow, but I can't seem to create assignments for the text boxes that are in a multi-state object. Is this possible?

    Currently there is no capability to add text frames withing an MSO to an InCopy assignment. There is limited support for this edit workflow when using solutions such as WoodWing or K4. Please make sure to fill out the feature request form: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform so that we can capture the demand for this function.

  • My multi-state object disappear's when I export to PDF but works in Preview mode?

    I created a multi-state object which is a series of logos that appear when a button is clicked. There are two buttons one is set to go the the previous state and one is set to go to the next state. When I view it in the preview mode it works fine but when I export it to PDF nothing happens when I click the buttons. Any help would be greatly appreciated.

    Multi-state objects are NOT supported in PDF. The PDF standard preceded the development of multi-state objects. It's now under the control of the ISO so may be slow to adapt.
    They work when exporting to SWF or with the Adobe Digital Publishing Suite.

  • Hyperlinks in Multi-state object?

    I can't find the answer in the Help PDF, maybe because it is maybe even impossible to achieve it... or maybe there is a trick...
    How can I make hyperlinks to work in a Multi-state object?
    Thank you

    Wait a few days for the release 18 tools.

  • Image buttons in multi-state-object

    Hello,
    I created 3 articles in Indesign for the iPad. The 3 articles come in a liquid format (landscape and portrait) and are all quite picture heavy. Nevertheless, I am very surprised of the folio file size, it's over 500 MB big.
    The biggest Indesign file of these 3 articles has 115 MB as there are many statuses (multi-state-objects) (please see screenshots attached). I checked these resources out: Digital Publishing Suite Help | Best practices for creating overlays and Structuring Files for DPS
    According to these resources, the images in my 9 big circles should be resampled when I export the folio in PDF format. So by theory the image sizes cannot be the problem here. But what else can be the problem? I can't think of any other issues.
    What can I do to reduce the folio size. Please help!

    I don't have any web overlays, no. Just normal URL links (In-App-Browser opens). I have 1 video file embedded (nearly 400 MB), so I am well aware of that. But 150 MB for the rest when it's only 3 articles (despite having 2 formats) seems a bit too much to me. I did add the articles to the folio once at a time, yes. And it is the article with the many buttons and MSOs (as seen in the screenshots above) that is so big. This is also the article with the video in it, but still. I have the feeling buttons or the images in the buttons are making the folio so big. I often do app magazines with approx. 15 articles and 3-4 videos embedded (200-300 MB per video!) and that is normally 650 MB or so. So comparing that with my 3 articles makes me wonder.
    Do MSOs and buttons make a folio big, is that possible? Or is it the images in the 9 big buttons not being resampled correctly (even though the documentation - 2 links in my original post - say something else). When I export the article, I always export it as PDF and when looking at the loading bar, it says "saving as PNG". So that should mean that all my buttons are resampled, I don't have to worry about image file size and it's exported as PNG in the PDF. Hm...

  • Slideshow Using Multi-State Objects

    Hi,
    I created a slideshow in an Indesign document using multi-state objects. The slideshow has foward and backward buttons to navigate the slideshow. The slideshow works fine in Indesign but when I export the document as an intereactive pdf, the slideshow no longers works. What am I doing wrong? I'm using Indesign CS 5.5.
    Thank you,
    Kristie

    What you're doing wrong is expecting it to work. MSOs are for SWF and DPS output only.
    The only workaround is doing it in its own file, exporting to SWF and placing that in the PDF.
    Bob

  • Multi-State Object Change Speed

    How can I adjust the speed and style how the multi-state object changes its states? I find the fade to be too long. Any ways that that can be shortened?

    Select the MSO and use the options in the Folio Overlays panel.

  • DPS HTML to activate multi state object

    Is there a way to have an HTML asset placed in a DPS folio, to activate a specific state of a multi state object?

    I don't think there is a way to use hyperlinks to change an MSO's state.
    Two approaches you might try:
    1 - Lose the MSO and create it as an html overlay and use jQuery to create a similar MSO change state experience
    2 - Try overlaying a blank button on your html link and use that to change the MSO state

  • Video above multi-state object

    hi guys,
    We always tried to avoid this kind of problem on our designs, however, this time we are just converting a publication so we cannot change the design and we are facing an issue, basically we have a video and a calendar that opens fullscreen when I click on a button. The problem is that the video remains above the calendar (see attached image)
    I found some posts talking about this, but they are related to the same object, not different objects. Is there any way to fix it?
    Thanks!

    >
          Multi state object - once my video finishes it takes me back to
          the 1st state. Can I stop this?
    created by ross_macintyre
    <http://forums.adobe.com/people/ross_macintyre> in /Digital Publishing
    Suite/ - View the full discussion
    <http://forums.adobe.com/message/4967946#4967946ross_macintyre <mailto:[email protected]>
    Friday, January 4, 2013 11:21 AM

  • Are Multi-state Objects Supported in Version 11 DPS tools?

    Hello Everyone!
    I was wondering if multi-state objects are supported in V11 of DPS tools for example if i create a multi state object and build it for an iPad,
    Will the MSO work with V11?
    On Another note,
    Horizontal Swipe won't work on V11 right?
    Thanks!

    Hi Bob,
    I was given the green light to proceed with MSOs and on their spec sheet it said they supported multi state objects.
    Here's a quick mock up of something similar we did.
    The arrows are part of the state, as well as the image and text, so there's buttons within the states.
    Something like that would not be possible?
    The reason we did it this way was because they wanted everthing in one page, so the only way to fit multiple pages into one was to create MSOs, i originally had it as seperate pages were the user would click the arrow and it would take you to the next page instead of the next mso.
    Thanks bob!

  • Image on top of multi-state object

    Is it possible to put an image on top of a multi-state object? I have tried converting the image to a button, but it won't go on top of the MSO.

    Convert the image to an MSO. By default it will have two identical states. Have it run automatically once and put it on layer above the other MSO.
    Bob

  • Multiple multi state objects

    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.

    @piggychops – I'm not  exactly sure, but by that code you only cycle through the states of the MSOs.
    You never change its visible appearance on the page, because the active state of the MSO is always the same state.
    So you'll end up with always the same contents that is exported to PNG (do you get that result?).
    To get all states active, set the states in the loop (one after another) to the active one and then export to PNG.
    MSO.states[i].active = true;
    But before, store the current active state, so that you can return to the original appearance…
    Something slightly different, but the code may help you (all comments are in German, but that should be no problem):
    Multistateobject exportFile Problem
    http://www.hilfdirselbst.ch/gforum/gforum.cgi?post=498745#498745
    http://www.hilfdirselbst.ch/gforum/gforum.cgi?post=498942#498942
    Uwe

  • Main Video on Multi-State Object Won't Stop Playing!

    In InDesign CS5. I have created an Interactive PDF that has a Mult-State Object of videos.
    I have One main video and 4 thumbnail videos set up in a gallery formation. So when the user clicks the main video or the thumb nails the different states change.
    However when a user clicks on the main video the video sounds as if it is being played twice with an echo. When the user clicks to pause the video...the video stops and the audio continues to play, but without the echo.
    However if I choose a video from the "side-bar" first the videos play perfectly fine without any echos.
    I cannot figure out why if the main video is selected it plays twice with an echo and the audio continues when I press pause.
    But how everything works perfectly fine if the user chooses the videos form the thumbnail "gallery"
    Any help will be greatly appreciated!

    Also, while the video is playing, the video displays improperly: it lags and doubles (I'm not sure i was clear...).Thanks! Cheers!

Maybe you are looking for