Selecting a specific keyframe

Hi,
is it possible to select a keyframe from a script ? I mean the same thing as clicking on a keyframe with the mouse to select it but in a script.
thanks

It appears that you can only check to see if a key is selected. Not actually select keys.
Pg. 135 of the CS6 scripting guide. After Effects Developer Center | Adobe Developer Connection
app.project.item(index).layer(index).propertySpec.keySelected(keyIndex);     //Returns boolean (true or false)
What are you trying to accomplish? You can iterate through keys to get values and such.

Similar Messages

  • How to select a specific cell in a JTable?

    Hi there,
    in a JTable, I would like to select a specific cell (to highlight it) from a JButton.
    Here a sample code...
    Who could help me to fill it?
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TableSelection{
        public static void main (String args[]) {
          JFrame frame = new MyFrame();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.show();
    class MyFrame extends JFrame{
      public MyFrame(){
        setTitle("TableSelection");
        setSize(WIDTH,HEIGHT);
        DefaultTableModel myModel = new DefaultTableModel(2,2);
        JTable myTable = new JTable(myModel);
        myTable.setCellSelectionEnabled(true);
        JButton button00 = new JButton("select 0,0");
        button00.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent event){
         System.out.println("selection of cell (0,0)");
         //--- what code is required to select the cell(0,0)?
        JButton button11 = new JButton("select 1,1");
        button11.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent event){
         System.out.println("selection of cell (1,1)");
         //--- what code is required to select the cell(1,1)?
        Box myBox = new Box(BoxLayout.Y_AXIS);
        myBox.add(new JScrollPane(myTable));
        myBox.add(button00);
        myBox.add(button11);
        getContentPane().add(myBox, BorderLayout.CENTER);
      private static final int WIDTH=200;
      private static final int HEIGHT=200;
    }Thanks a lot for your help.
    Denis

    Use the addColumnSelectionInterval(int index1, int index2)method ~ http://java.sun.com/j2se/1.4/docs/api/javax/swing/JTable.html#addColumnSelectionInterval(int,%20int)
    and the addRowSelectionInterval(int index1, int index2) method ~ http://java.sun.com/j2se/1.4/docs/api/javax/swing/JTable.html#addRowSelectionInterval(int,%20int)
    Hope that helped.
    afotoglidis

  • How to select a specific column in a bean method?

    Hey everyone,
    I'm trying to select a specific column in my adf table so i can hightlight the ones i can after, with a method bean that does a match from another table. I'm using JDeveloper 12.1.2.0.0.
    Here's my table at the moment (its a static list that Timo and Alejandro helped me create, thanks to them again!):
    <af:table value="#{bindings.Anos1.collectionModel}" var="row"
                                                              rows="#{bindings.Anos1.rangeSize}"
                                                              emptyText="#{bindings.Anos1.viewable ? 'No data to display.' : 'Access Denied.'}"
                                                              rowBandingInterval="0" fetchSize="#{bindings.Anos1.rangeSize}"
                                                              filterModel="#{bindings.Anos1Query.queryDescriptor}"
                                                              queryListener="#{bindings.Anos1Query.processQuery}"
                                                              filterVisible="false" varStatus="vs" id="t5"
                                                              styleClass="AFStretchWidth" columnSelection="multiple"
                                                              inlineStyle="max-width:100%;" columnStretching="multiple"
                                                              columnSelectionListener="#{ControlBean.onAnoColumnSelect}"
                                                              disableColumnReordering="true"
                                                              binding="#{ControlBean.dimAnos}">
                                                        <af:column sortProperty="#{bindings.Anos1.hints.A2011.name}"
                                                                   filterable="true" sortable="false"
                                                                   headerText="2011"
                                                                   id="c54" width="16%">
                                                            <af:outputText value="#{row.A2011}"
                                                                           shortDesc="#{bindings.Anos1.hints.A2011.tooltip}"
                                                                           id="ot54">
                                                                <af:convertNumber groupingUsed="false"
                                                                                  pattern="#{bindings.Anos1.hints.A2011.format}"/>
                                                            </af:outputText>
                                                        </af:column>
                                                        <af:column sortProperty="#{bindings.Anos1.hints.A2012.name}"
                                                                   filterable="true" sortable="false"
                                                                   headerText="2012"
                                                                   id="c55" width="16%">
                                                            <af:outputText value="#{row.A2012}"
                                                                           shortDesc="#{bindings.Anos1.hints.A2012.tooltip}"
                                                                           id="ot55">
                                                                <af:convertNumber groupingUsed="false"
                                                                                  pattern="#{bindings.Anos1.hints.A2012.format}"/>
                                                            </af:outputText>
                                                        </af:column>
                                                        <af:column sortProperty="#{bindings.Anos1.hints.A2013.name}"
                                                                   filterable="true" sortable="false"
                                                                   headerText="2013"
                                                                   id="c56" width="16%">
                                                            <af:outputText value="#{row.A2013}"
                                                                           shortDesc="#{bindings.Anos1.hints.A2013.tooltip}"
                                                                           id="ot56">
                                                                <af:convertNumber groupingUsed="false"
                                                                                  pattern="#{bindings.Anos1.hints.A2013.format}"/>
                                                            </af:outputText>
                                                        </af:column>
                                                    </af:table>
    I've deleted some of the columns because they are all equal and by doing so, you have less problems in reading it.
    In my method i have a matchEm but i'm trying to select a column by using this line:
            dimAnos.setColumnSelection("A2012");
    dimAnos is the binding for my table Anos (Years in Portuguese). I even tried another values fro the columnSelection but i couldn't make it selected. Am i doing anything wrong?
    Please help me or give me an idea of how can i do this.
    Regards,
    Frederico.

    Hi Frederico,
    The method setColumnSelection is meant to set whether your table supports column selection or not. It doesn't select the column. In order to select the column, you need to set the column attribute Selected to true. So I don't know if its an option for you but you can create a binding to all the columns you have in you bean, and then call the method A2012.setSelected(true), and then add a partial target to the table to re render it and show the selected column.
    Hope this helps

  • Can you select a specific item from a listbox via scripting?

    This seems like it should be easy, but I've spent quite a few hours trying to figure this out, to no avail.  I'm trying to create a button that would automatically select a specific item on a listbox.  I though "selectedIndex" would do the trick, but this seems to only work if the user actually selects a specific item on a listbox.  I'm looking for the opposite effect, where a person will push a button where a specific item on the listbox gets selected.
    Any help would be much appreciated...thanks!

    You can use the setItemState method for this purpose.
    To select the third item use:
    ListBox.setItemState(2, 1);

  • How to: Select a Specific Timeline Displayed in Project Online when having multiple timelines within the Enterprise Project

    Currently I have an Enterprise Project which has 6 custom timelines and I want to know how to select a specific timeline to be displayed on the Project specific SharePoint site.
    I'll provide some background for you so you understand my issues... I have created a "template" project with 6 custom timelines. From that project I created multiple new projects - which they all have the 6 custom timelines. These projects are
    all stored in the Project Center. The problem I am having is I don't understand how to select a specific timeline to show on the project specific SharePoint site. They all seem to be displaying 1 of the 6 timelines (in no particular order). I was thinking
    maybe if I had edited a project and saved it while it was displaying a specific timeline it would display the last selected timeline on the SharePoint site, but it doesn't seem to be doing that.
    Is there a way to select a specific timeline to display on the SharePoint site?  Also, is there a way for a user to cycle through the numerous timeline view on the project specific SharePoint site?
    I await your help!! :)

    Michelle_Sm --
    I ran into this problem at the company where I used to work.  One of our PMs had created multiple Timeline views, and wanted a specific custom Timeline view to show up in the Project Site for that project.  I could not see any way to make that
    happen.  We had one of our SharePoint developers look into the issue, and he could not see any way to make this happen either.  So, I am thinking this is not possible to do.  But I would gladly welcome others in this forum to tell us the trick,
    if there is one!  :)  Hope this helps.
    Dale A. Howard [MVP]

  • Auto populate Infopath 2013 fields after selecting a specific dropdown option.

    Auto populate Infopath 2013 fields after selecting a specific dropdown option.
    Hi.
    I have a Sharepoint 2013 list with three fields. Code, Section and Sub Section.
    I would like to be able to have the form autopopulate the Section and Sub Section fields when a value for code is entered.
    How would I go about this please?
    Thanks
    Jon

    Hi JonMorgan,
    Based on your description, my understanding is that you want to achieve that the second dropdown gets populated depending on what the first dropdown is set to.
    To achieve your requirement, creating cascading dropdown fields with InfoPath.
    Please refer to the following links about cascade drop down in InfoPath form:
    http://msreddysharepoint.blogspot.in/2012/12/infopath-2013-web-browser-creating.html
    http://www.pointbeyond.com/2011/11/20/cascading-dropdowns-in-infopath-2010/
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • How to select a specific XML node with XPath

    Hi,
    I'm trying to a select a specific node from my XML data using the XPath Builder.  For example, say I have a process variable 'xmlData' with the
    following contents:
        User 1
        101
        User 2
        102
    I can successfully use the following expression to retrieve the name of
    a specific user:
    (/process_data/xmlData/users/user[userid='102'])/name
    The problem is I need to use another process variable for the selection
    key.  For Example:
    (/process_data/xmlData/users/user[userid=/process_data/@userId])/name
    But this always returns null.  I've tried surrounding /process_data/@userId
    with single quotes, double quotes, and event {$..$}. 
    Any help would be greatly appreciated.
    Thanks.

    Hi,
    Thanks for the quick replies.  I gave a bit of a bad example, as the
    userid in my data is really a string, not a number.
    A better example is:
        User 1
        user1
        User 2
        user2
    I can get the following to work perfectly:
    (/process_data/xmlData/users/user[userid='user2'])/name
    but I can't get it to work with
    /process_data/@userId = "user2"
    (/process_data/xmlData/users/user[userid=/process_data/@userId])/name
    Thanks.

  • Transaction SE16: Field selection (User-Specific Settings) is NOT working for ALL tables

    Hi Guru’s,
    I have an issue in Transaction SE16, Field selection (User-Specific Settings) is NOT working in Tables (ALL tables).
    Following is the screenshot attached for your kind reference,
    That is in the initial screen of transaction SE16 if I choose Filed Name or Filed Label only the technical details (Field Names) are appearing and not the descriptions like Client, Purchasing Doc, and Company Code Doc. Category Document Type etc…
    Right now I am using ECC6 and EHP7 SAP system.
    Please help me to resolve this issue by implementing any OSS note or User Role creations or any technical changes required in system.
    Hope the requirement is clear and in case need any clarification please revert back.
    NOTE: Right now in Development System we don’t have any successful user to compare the settings.
    Regards,
    Kumar.S

    Thanks Patra.
    Even I searched in SAP portal and couldn't able to find the relevant OSS note.
    Following is my BASIS team response,
    "Only you can view Table Field values from higher release"
    Can you suggest / guide on this comment as well.
    Looking forward to your speedy response.
    Regards,
    Kumar.S

  • I have selected a specific text tone for a certain contact but I only receive default tone when they text me. Why?

    I have selected a specific text tone for a certain contact but get the default tone when they text me. What am I doing wrong?

    Interestingly the selected text tone plays when texted by another iPhone.

  • When using a numbers spreadsheet, how do I select a specific area for printing?

    When using a numbers spreadsheet, how do I select a specific area for printing?

    Also this would be a question for the Numbers app fourm.  Not the iMac hardware fourm.

  • Calculate: select a specific part of a measure

    Hi,
    I do not know if it is possible to calculate the measure as I could not find the solution in the manual, I want to calculate the total meda expenses for a specific brand divided by the total media expenses for the product in whole. All brands are member of the brand dimension. I have already a measure thats provides the expences per brand,  but can I select a specific output or the total result from my spec brand measure? Or how can I solve it in any other way.  Ps Iu2019m creating the measures using Pilot Administrator (2007 version).
    Best regards,
    Davy

    Dear Davy ,
    As per my understanding , you want a measure which divides the media expenses for a brand by the total media expenses for the whole product.
    This can be done by using the CALCULATE statement. You can copy the value of the TOTAL media expenses into a variable "X".
    Now, you can recalculate the media expenses for each brand by using the CALCULATE command :
    CALCULATE mediaexpenses = mediaexpenses / X FULL
    This would calculate the media expenses at all the levels .
    Hope this helps,
    Vijay

  • Ive been having issues checking individual categories in the itunes store. All i get is a blank screen when I select a specific category. The only thing I can see is the initial apps store when I select apps. Whats going on?

    I get a blank screen in  my apps when I select a specific category in the app store in itunes. whats going on?

    The same for me.
    Bug is reproduceable.
    Greetings, Anakonda

  • Is there a way to select a specific playback device while using itunes 11 on Windows 7?

    Is there a way to select a specific playback device while using itunes 11 on Windows 7? I was trying to select a device, is there such an option in itunes as there is in VLC player and Windows Media Player. If not, any idea when this feature will becoem available? Thanks!

    iTunes supports multiple Airplay devices that can be selected.  If the device does not support Airplay then the manufacture of the device would need to support it for iTunes.

  • Even when I select a specific media type (or multiple media types) for ingest, Prelude imports .JPG etc.  I want to only import video files.

    Even when I select a specific media type (or multiple media types) for ingest, Prelude imports .JPG etc.  I want to only import video files within a section of subfolders.
    please help
    adobe prelude cc2014

    Prelude will ingest only the files that you have selected (checked the box next to) in the Ingest Dialog. Can you provide more information or screen shots of what you Ingest Dialog looks like BEFORE you ingest and what your Project Panel looks like AFTER you ingest?
    Thanks -
    Michael

  • Why dont all my photos (345) play when i select a specific file?

    Why dont all my photos (345) play when i select a specific file?

    Hey there Mrk_wrd,
    It sounds like you can successfully sync with iTunes and get no error messages, but when you try and play your music, the songs just scroll through and will not play.
    I think I would start with closing the Music app on your phone and restarting it. Then try again to play your music.
    Restarting your iOS device
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider.
    After the device has turned off, press and hold the Sleep/Wake button until the Apple logo appears.
    From: iOS: Turning off and on (restarting) and resetting
              http://support.apple.com/kb/ht1430
    If the issue persists then I would resync your content to your phone.
    Plug your device into iTunes and click it. Then go to your Music tab and uncheck the Sync Music checkbox, and click apply in the lower right corner. That will remove the music from the iPhone.
    From: iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad
              http://support.apple.com/kb/PH12113
    When that process is done, restart both your iPhone and the computer, then go back into iTunes and recheck the Sync Music checkbox and click apply again to resync your music to the phone and test it again.
    Thank you for using Apple Support Communities!
    All the best,
    Sterling

Maybe you are looking for

  • Sun ejb tutorial compilation problem with sample code

    I have been trying to follow the ejb tutorial off of Sun's web site. However, I get the following problem when I try to compile the sample code. prompt>javac Demo.java works fine Prompt>javac DemoBean.java works fine Prompt>javac DemoHome.java DemoHo

  • What are my chances (messed up Macbook pro)?

    While I was in the middle of the first question on a statistics test my Macbook pro froze.    I ended up having to hold the power button until it restarted and when it did turn back on it only would go to the disk utility screen and is taking forever

  • Apple Mail transfer - HELP!

    Hi Everyone, I'm having an issue doing a simple Mail move and I'm not sure why. I've recently done a fresh install of Snow Leopard and was attempting to move my Mail Folder and Mail Preferences list from a TM backup. No problem moving them, of course

  • I cant add more credit to my account

    This is ridiculous, there's no contact number anywhere to be found , I'm trying to add more credit to my account and the web site is not letting me

  • What causes a macbook pro to suddenly become slow?

    I have only had my macbook pro for a year. Well recently it suddenly became very slow to the point where every few seconds the spinning beach ball looking thing came up (loading icon)... and it would stay there for a good 15 seconds then go away for