find the framerate to place keyframes

We build a plugin to place keyframes in a composition

We want the keyframes to appear in the timespots that match the framerate of the composition.

We have, at present, is on about:

A_Time time;
AEGP_ItemH myitem.
Suites. ItemSuite8()-> AEGP_GetActiveItem (& myitem);

Suites. ItemSuite8()-> AEGP_GetItemCurrentTime (Monelement and time)

(for i...)

KeyTime = A_Time {mytime + i * 1000, time.scale};

Suites. KeyframeSuite4()-> AEGP_AddKeyframes (positionKeyframesInfo, AEGP_LTimeMode_CompTime, keyTime, & index);

Suites. KeyframeSuite4()-> AEGP_SetAddKeyframe (positionKeyframesInfo, index, & tempPosition);

where I * 1000 is an approximation of hackers and terrible where keyframes should be placed. (we tried an estimate more complicated involving taking the framerate in the time scale and dividing by himself, with rounding errors and hat kind of worked, sometimes, but then sometimes it does not at all and in any case isn't really what we actually need for our problem remains the same.)

There must be a way to put a keyframe by image, by using the framerate of the composition. but we read everything we could find in the SDK, and we don't see it.

What can we do? is there a need that gives us this information?

-----

Another way to phrase this question

The call to -> AEGP_AddKeyframes KeyframeSuite4() has a required argument to an A_Time where to place the frame.

We would like at this point to match, gradually, the time of each new image, depending on the framerate of original compositions.

How can we achieve this?

---

ETA: also, for my own edification, in

() AEGP_SetAddKeyframe
AEGP_AddKeyframesInfoH akH,
A_long indexL,
const AEGP_StreamValue2 * valueP);


What is the meaning/purpose of A_long indexL?

Hello!

What you are looking for is CompSuite8()-> AEGP_GetCompFramerate (compH, &fps));)

To use it, you will need to get a CompH of your ItemH like this CompSuite8()-> AEGP_GetCompFromItem (ItemH & CompH)

Now you can set A_Time keyTime = {mytime + i * time.scale / fps, time.scale};

It will be useful,

François

PS: I don't see the end of your question...

Suites. KeyframeSuite4()-> AEGP_AddKeyframes (positionKeyframesInfo, AEGP_LTimeMode_CompTime, & keyTime, & index);

Index is the index of the newly created key, so that you know which key should be changed with suites. KeyframeSuite4()-> AEGP_SetAddKeyframe (positionKeyframesInfo, index, & tempPosition);

Tags: After Effects

Similar Questions

  • Find the Framerate of the movie with Code

    I can find the size of the scene from a movie as follows:

    myStageWidth = Stage.width;

    is it possible to do to find the framerate of the movie in that the code resides, or a movie loaded? for example (in pseudocode)

    myframeRate = myMovie.frameRate;

    Any help with this would be appreciated!

    Thank you

    K

    Unlike the AS3, which has a frameRate property that you can read announcement set using ciode, AS2 doesn't have such a property.  You can try to determine it indirectly, although he might not agree with the actual value.  Here is a link to a discussion about this...

    http://forums.Adobe.com/thread/918024

  • Find the text and place the eps images

    Hello

    I have a lot of eps in the folder (eps001.eps, eps002.eps), but manually find the text in indesign [[[eps001.eps]]] and place corresponding image folder can someone help me

    Kind regards

    Barro

    Try this,

    var file = myArtFolder ("/ C / / numbers /" ""); Figure folder path

    var myArtFilesList = myArtFolder.getFiles ();

    app.findGrepPreferences = app.changeGrepPreferences = null;

    app.findGrepPreferences.findWhat = ' \ [------[------[. +------]------]------]';

    found = app.activeDocument.findGrep (true);

    for (j = 0; j< found.length;="">

    var foundText = .silence found [j];

    for (i = 0; i<>

    {

    "var artFile = ' [[[" + myArtFilesList [i] .name + ' "]]]"

    if(artFile==foundText)

    {

    found [j].insertionPoints.item (0) concerned (file (myArtFilesList [i]));

    }

    }

    }

    app.findGrepPreferences = app.changeGrepPreferences = null;

    I did not delete the text "[[[eps001.eps]]]...". "using script, you test and eventually remove it by using grep.

    Vandy

  • Why I don't find the function "place" in Adobe Photoshop CC 2015?

    2-11-2015 10-50-52 AM.png

    Hello. Why cant't I find the feature of "place" in Adobe Photoshop CC 2015?

    Thanks for the help.

    You found it.

    Photoshop cc 2015 has file > Place incorporated and Place > bound.

    (Place > Embedded is the old file > Place)

    You don't have to have an open documents use.

    more information:

    https://helpx.Adobe.com/Photoshop/using/create-smart-objects.html

  • Where is the option to 'Place' in Photoshop CC 2015?

    I might be dominant it somewhere, but I can't seem to find the option to 'Place' in Photoshop CC 2015. Earlier versions, at least those I've used; Photoshop CS6 and Photoshop CC, took place under file option.

    It is not an option in Photoshop CC 2015?

    Sound here. They added a related option so the two choices are placed embedded or linked place

  • Example: Pavilion 550qe: have just got a QED Pavilion and can not find the place where the monitor.

    Have just got a 550qe of Pavilion and can not find the place where the monitor.   The image on the book they sent shows the exact card, I need but can't find anywhere on the back of the PC.    There are a few plates little who have the drivers there, but do not want to start removing the panels unless this is where some of the connections are hidden.

    Hello

    Can't find the official specs of HP. But since the following specifications

    |-Intel-Core-i7-|-Windows-10-|-Silver.product.100241370.html http://www.Costco.com/HP-Pavilion-550qe-desktop-

    There

    Ports:

    • 2 x USB 3.0
    • 2 x USB 2.0
    • 1 x HDMI
    • 1 x VGA
    • 1 x jack Headphone-out/microphone-in the drop-down list
    • Multi format card reader

    Depending on your monitor, you can use HDMI or VGA to connect. What is your monitor (make and model)?

    Kind regards.

  • Hello, I would like to get a refund for the software purchased from Adobe. I have 14 days to do so, but I can't find the place to cancel the order. Thank you!

    Hello, I would like to get a refund for the software purchased from Adobe. I have 14 days to do so, but I can't find the place to cancel the order.

    Thank you!

    You may please check out the link below for instructions on cancellation.

    Cancel your membership creative cloud

    For more information you can contact the Support from Adobe by clicking on the link below.

    Contact the customer service

    Please make sure that you are connected to the right Adobe ID.

    Hope this will help you.

    Kind regards

    Hervé Khare

  • Unable to find the right place to download the replacement for lost PS CS6 Extended

    My PC with Windows 8.1 became corrupt.  I reloaded the OS and lost all my apps.  I can't find the right place to download the Photoshop CS6 extended of replacement app.

    Under the heading products download CS6 , I get an access denied error.

    How can I download PS CS6 Extended?

    John70b downloads do not seem to work.  Please try using a different web browser to start the download process.

  • where can I find the place to download ps 5 on my new computer?

    where can I find the place to download my ps 5 on my new computer?

    If you really mean Photoshop 5, you're not likely to find a download for this resource if you don't have the disks - it is old.

    If you happen means Photoshop CS5, you can download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    CS5: http://prodesigntools.com/all-adobe-cs5-direct-download-links.html

  • I linked one chose "remove from toolbar" on the new "drive mode" icon and it removed my entire address bar and I can not find the place where to pick up

    With the latest update of firefox (38.0.5) I take away the new features that I would never use the button 'save for later '. Then the notification popped up in the navigation bar for the new feature 'in player mode', which is another thing that I'll never use. I right click it and chose "remove from toolbar". This action removed my address bar. My navigation bar is still there, but the address bar to enter a URL has disappeared. It's just my research and my download bar and buttons of AdBlock. Usually, I have my bar address/URL/navigation to the left of the search bar with the navigation arrows. When I go to customize I can't find the address bar. I have a particular look, I prefer and would not have to go through the restoration of values by default if I have to. Maybe I'm just missing something stupid obvious and I just need someone to point out. Thank you!

    I found this link

    https://support.Mozilla.org/en-us/KB/reset-preferences-fix-problems

    And was able to "Refresh" my firefox. Now the long process of return to my silent settings I prefer. Really disappointed with firefox for the first time. Not the solution I was hoping.

    Details on how to remove the 'drive mode' icon of a book of the URL bar it would be appreciated.

    Thank you!

  • Could not find the place or equipment to download dvd pictures__that I have the disk. This driver is it too?

    where can I find the program to download images of DVDs on my computer?  Ive tried everything I know

    Also, I had to clean my manage and know I can't see my butterfly or alternet sign on names.

    Wed, 15 Sep 2010 22:39:09 + 0000, John Verwys wrote:
     
     
    > ken,.
    >
    >
    >
    > my computer plays CDs fine, but when I pop in a cd with photos on.   it it starts and I can't find where in my computer to access the driverer to see these photos.  cut and paste, I understand, but find the photos to copy or cut is my problem.  John 616-886-9795
     
     
    The fact that it is a CD is basically not relevant. It's like
    copying files to a folder on the hard drive to another.
     
    It has more of a way to do it, but here's an easy way:
     
    Open Windows Explorer or my computer and go from there, the CD player. Also
    Open a second copy of the Explorer / my computer and go to the folder you
    would that the files are in. In the first copy of the Explorer / my computer.
    Open the CD drive and find the photos you want, then copy and paste
    them (or drag and drop them) to the other copy of the Explorer / My
    computer.
     
     

    Ken Blake, Microsoft MVP

  • Power outage required that I put in place a new user in Vista that I did. Now I can't find the original user and associated files. All files seem to be missing. Help?

    Laptop must have been left on. Last night power Outtage. I went back and put the computer to find guests requiring that I created a user, I did. Now, I can't find the original user and all files seem to have disappeared.  Have Vista

    Hello

    1. don't you make changes on the computer before this problem?
    2. do you remember the exact and complete message on this line?

    Check if you can find the user original files of accounts in the following path:
    C:\Users\[user account name]

    The article could be useful to you.
    Difficulty of a corrupted user profile
    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

  • "Se error message" cannot find the &#60; required &#62; file in the &#60; place &#62; during Internet download

    Original title: I'm not able to save my downloads of web due to change in a techniical framework. What should I do?

    the message that I get while opening the download is described as under .pls try n help as soon as possible cos all my work is on hold.



    Cannot find the file in the



    Hello

    1. which browser is installed on the computer?

    2. were there any changes (hardware or software) to the computer before the show?

    Perform the steps mentioned below, if Internet Explorer is installed on the computer.

    a: Open Internet Explorer.

    b: click on Tools > Internet Options.

    c: Then click on the Security tab.

    d: then click on the custom level button.

    e: Now navigate to the downloads section.

    f: Then select Activate for the download file option.

    g: then click on ok > apply > ok.

    Hope this information helps.

  • Cannot find the overall messages file - db.sqlite

    Hi, volunteers! Thank you for being here.

    The search function of Thunderbird has stopped working. He cannot find all - regardless of the query returned no results.

    I understand that I need to rebuild the global database to correct this and have read the instructions here:

    https://support.Mozilla.org/en-us/KB/rebuilding-global-database

    He tells me to delete my profile from TB global-messages - db.sqlite. Connects me to another page on how to find this profile. I followed these instructions:

    "How to find your profile.

       Click on the menu button or menu bar.
       From the Help menu, click Troubleshooting Information.
       In the Application Basics section, Profile Folder, click on Show in Finder.
       The Mac Finder window will show the name of the profile as well as the path to it."
    

    The finder window shows me this file: zfrnv9to.default - 1445806062498. Nothing inside it looks like the file I'm supposed to delete, which is global-messages - db.sqlite.

    I also used the Mac projector for a search on "global-messages - db.sqlite. He cannot find anything like this on my Mac Air (which is running El Capitan). It is usually pretty reliable to dig up files, but - no luck.

    What should I do now?

    Zenos, thank you! I solved this on my own last night.

    In case it helps the next person: I re-read the page of Mozilla to find the file.

    So, rather than looking in the Application databases, I dug through my files user myself, using the information that it would be under User/Library etc.

    It took a few minutes of poking around to find it. I deleted it, restarted TB, and the search function is back.

    The mystery that I can't solve it is why the recommended method or research Spotlight of the CMA does not find it in the first place. But with time and patience, the manual search does the job.

    Thanks for the tips, the time and help!

  • I need to find the SPAM folder. How can I do?

    In order to retrieve information on some sites, I need my password. They send my password, but they tell me to check the spam folder. Where can I find the spam folder? Designated as spam messages do not appear in my Inbox to the ordinary letters.

    Thunderbird does not create a Spam folder. Your email provider may have a. Sign in to your account to your web e-mail providers site and see what you find there.

    Thunderbird junk term instead of Spam used to separate things. By default, Thunderbird places an unwanted icon next to what anyone, he considers undesirable and place in your Inbox unless you go into unnecessary controls and change this operation. Looks like you have not done this.

Maybe you are looking for