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

Similar Messages

  • How to enumerate items on multi state object? (SDK Indesign)

    Hello,
    I need to take all snapshot items in multistate object. How to get all items in multistate object?
    Thanks

    do
    InterfacePtr<ILayoutSelectionSuite> layoutSelectionSuite(Utils<ISelectionUtils>()->QueryActiveLayoutSelectionSuite());
      if (!layoutSelectionSuite) break;
      UIDList items(splineRef);
      layoutSelectionSuite->SelectPageItems(items, Selection::kReplace, Selection::kDontScrollLayoutSelection);
        InterfacePtr<IAppearanceList> appearanceList(splineRef, UseDefaultIID());
      if(!appearanceList) break;
      InterfacePtr<IAppearanceSuite> appearanceSuite(SelectionUtils::QuerySuite<IAppearanceSuite>());
      if(!appearanceSuite) break;
          for(int32 i = 0; i < appearanceList->NumStates(); i++)
          Form::AppearanceState appState = appearanceList->GetNthState(i);
            ErrorCode errorCode = appearanceSuite->SetActiveState(appState);
    //Take snapshot
    }while(kFalse)

  • 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

  • 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.

  • 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.

  • Holding object stats in multi tired system

    I wonder how forrms handle the states of objects in multi tired system.
    Suppose I have a trigger in form level which excutes when we open form. now every times I press a button it makes some action. How does server knows about the state and values of the items.
    Message was edited by:
    purusingh

    The form is running on the Forms Runtime, so the Application Server. I presume that one of its several roles is to maintain the value of each object in memory...
    Francois

  • 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!

  • Multi state object slide show not working in EPub3 (iBooks, Google Books, etc.)

    In my various searches online with tutorials, etc. it appears that InDesign CC supports creating image slideshows that then export into ePub 3.0 where they can be viewed and interacted-with on mobile devices.  An example of this type of guidance is this:  InDesign CS 5.5 Publishing ePUBs to the iBook with Video - YouTube
    Anyway, I have followed what I think are all of the guidance steps to create a multi-state object for a series of images and then go into folio overlays and convert them to a slideshow that can be interacted with.  When I preview they all work just fine but when I then export as ePub3.0 they are static images with each image overlayed on top of the other. 
    I have tried calling Adobe Technical support and they are saying that InDesign CC does not support this type of EPub export, but again all of the online tutorials, etc. indicate that it does.  I am very confused and I don't know what I'm doing wrong. 
    When I export my book to ePub, the images and captions appear to export as raster images together so I'm thinking it's something to do with the object export functions, but beyond that I don't know how to fix this issue. 
    I would definitely appreciate any help anyone can offer on this matter.  Thank you very much in advance.
    Sincerely,
    Mason

    I'm sorry...  You're right...  The link I provided was not the right one...  This is the right one: InDesign CS 5.5 Digital Publishing Suite to iPad, Android and Blackberry - YouTube
    The time on the video would be around 2:45. 
    This is another example (the whole video) Digital Publishing With InDesign CC: Slideshows - YouTube
    My ignorance may be showing here because I'm starting to realize that ePub and Digital Publishing Suite may well be two different things...  But I am still confused on how the resulting digital book is distributed to consumers if it's not made available through Google Play, iBooks, etc. 
    My colleague and I have been trying to make this work for some time following several tutorials to no avail.  But it may well be that we were barking up the wrong tree to begin with.
    Thank you for responding.

  • 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.

  • 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

  • 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

Maybe you are looking for

  • One properties file in resouce adapter

    I add one property file under resource adapter myadapter.rar    \configuration.properties    \myadapter.jar in my java classes located in myadapter.jar,How can I access the parameter info I setup in the configuration.proeprties

  • Help with Frameset and Browser differences

    I hope someone can help me with my Frameset. It works great in Safari but Firefox doesn't recognize the frames. I'm using Dreamweaver CS5.5, Mac OS10.8. Here's the link: http://tonyhertz.com/2012/Frameset_black_white_landscape_photo.html Thank you.

  • How do I get to the 'sidebar' view in iTunes 12.0?

    I have not been able to find the 'view sidebar' option under view in the new iTunes (12.0).  Can anyone tell me how to get to that view option?

  • Generic Installation Error - "Please try installing again."

    I have tried installing iWork '06 on my computer about 6 times now. Each time it goes through the whole installation process and then at the end it says there was an error, with the message, "Please try installing again." I have come across other pos

  • Says "ipod folder not found"

    Hi, I need help...I have an ipod and it has been working fine but all of a sudden when I try to upload new songs on it or try to play the songs on my ipod they dont play and itunes says "folder not found" what can i do to fix this?