3 Replies Latest reply on Dec 20, 2010 1:59 PM by Marijan Tompa [tomaxxi]

    [JS CS5] How to get the selected state of a multi-state object

    KeithGilbert Level 1

      Does anyone know if there is a way to identify which state of a multi-state object is selected?


      You can select individual states of a multi-state object in the States panel.


      In the Object Model,


      myState = app.selection[0].states.item(0);

      myState.active = true;


      ...displays the first state in the mso. But I can't figure out how to identify which state is currently visible. This doesn't seem to be possible in the object model, unless I'm missing something. Any ideas?