Speed real keyframes and the influence of the spatial properties

I am writing a script that exports of layer properties based on their keyframes to animate on html.

There are 3 different groups of properties and each takes a different calculation.


PropertyValueType.COLOR, ThreeD, TwoD, OneD

It is the easiest. For each dimension, I get the averageSpeed. And then I calculated the checkpoints of the ease curve.

averageSpeed [index] = (endKey.value [index] - [index] initKey.value) /duration;

bezierIn.x [index] = 1 - item.influence / 100;

bezierOut.x [index] = initKey.easeOut [index] .influence / 100;

bezierIn.y [index] = 1 - ((item.speed) / averageSpeed [index]) * (item.influence / 100);

bezierOut.y [index] = ((initKey.easeOut[index].speed)/averageSpeed[index]) * bezierOut.x [index];)


PropertyValueType.ThreeD_Spatial, TwoD_Spatial

For these spatial properties, for average speed, I need to first get the spatial curve distance, and then it's like before.


averageSpeed = getCurveLength (initKey.value, endKey.value, initKey.tangentOut, endKey.tangentIn) /duration;

bezierIn.x = 1 - endKey.easeIn.influence / 100;

bezierOut.x = initKey.easeOut.influence / 100;

bezierIn.y = 1 - ((endKey.easeIn.speed) / averageSpeed) * (endKey.easeIn.influence / 100);

bezierOut.y = ((initKey.easeOut.speed) / averageSpeed) * bezierOut.x;


PropertyValueType.SHAPE

The shape is the same as the previous one, only this average speed is always 1.


They are all very well in common cases work. But for the spatial properties, After Effects reports incorrect influence in some cases.

It seems that the influence is deliberately limited so that the speed will not get negative values on the way.

I don't understand exactly how the influence is limited but the keyInTemporalEase property´s and keyOutTemporalEase indicates always the value defined by the user and not the limited value.

I need to get the real value, so I can reproduce the animation correctly when I export it.


Does anyone have an idea how to get the real value of the property of influence? I understand what is happening properly?

Here´s a chart showing the curve when the influence is limited.

graph.jpg

After a bit of trying, I got what seems to exactly reproduce the movement in all situations:

// e1, e2 : KeyframeEase associated to the first and second key:
var e1 = myProp.keyOutTemporalEase(1)[0];
var e2 = myProp.keyOutTemporalEase(2)[0];

var DT = myProp.keyTime(2)-myProp.keyTime(1);
var segLength = getCurveLength(bezier segment);     // use your getCurveLength method

// restricted influences (restrictions are so that the arclengths is a non decreasing function of the time):
var inf1 = Math.min(100*segLength/(e1.speed*DT), e1.influence);
var inf2 = Math.min(100*segLength/(e2.speed*DT), e2.influence);

// now use inf1 and inf2 instead of e1.influence and e2.influence;

Xavier.

Tags: After Effects

Similar Questions

  • I installed plusv15 of real players and the dvd burner does not work. It freezes and told him to put in a disc.

    I bought plusv15 real player and it has been installed. for some reason any dvd burner does not work. A pop up comes up saying wrong disc record and replace it with a new drive. I did it three times. Real player support me staff referred to you. Windows dvd burner does not work.

    Hello

    I suggest you try to execute this fixit and see if it helps:

    http://support.Microsoft.com/mats/cd_dvd_drive_problems/en-us

    I would also ask you to contact the manufacturer of your computer to check the updates of the firmware of your CD/DVD drive.

    It will be useful.

  • Keyboard shortcut to add keyframes and the judgment to start...

    Hi guys, sorry I ask this basic, but I couldn't find the answer in Google or YouTube.  You also look for just the keyboard shortcut for adding keyframes (Google said something while pressing a button 'Properties', information very confusing idk) rendering must stop when she has finished reading automatically the sequence she is anyway, beginning. Is anyway to do this? Thanks for the responses, I really appreciate it

    Looking for just the shortcut to add keyframes

    It is not a. After you activate the keyframing with the stopwatch button, you click on the button Add/Remove a keyframe in the effect controls panel. You will find here much more: addition, navigate and setting keyframes

    rendering must stop when she has finished reading automatically the sequence of him is beginning

    Edit > preferences > General > uncheck 'work after rendering preview area.

  • Simulate the GPS and the accelerometer?

    Don't/does the Simulator to simulate coordinates GPS (direction, speed, etc.) and the accelerometer?  I know that VMWare will be not able to do it, but another method?  Yet another application in developer mode that can run a script to simulate some actions (ala XML)?

    Little a chicken or the egg situation were there are people who want to deliver these applications before the product launch, but would need a product to develop and test their applications.

    We will call this "Most Wanted Features in Simulator" thread, I'm dreaming of touching and sliding events.

  • Beginner jQuery is having trouble with the links and the page redirect and page caching.

    Hi all

    I'm trying to update an old legacy of multipage site (each page has headers html etc.), adding jQuery Mobile. Most of the time it goes well, but I'm having some problems with the links, the redirect of the page, and caching.

    I write javascript like this...

    < script >

    -do things - then-

    Window.Location.Replace ("Page1.html");

    < /script >

    and links like this


    < a class = "-ui ui-btn-b btn tsize1" href = "page2.html" rel = "external" > page 2 < /a > "


    CACHING ISSUES


    On many pages - such as those that I have problems with, I've added no caching of code as...

    < head >

    < META HTTP-EQUIV = "Pragma" CONTENT = "no-cache" >

    < META HTTP-EQUIV = "Expires" CONTENT = "-1" >

    ... more...

    < head >

    Problem: for example, I can go to Page 1 and click on a link to go to page 2 and page 2 has the lines "no cache" header. The problem is that a fresh change of page 2 does not appear even with no cache lines above and even if I hit refresh in the browser that I thought it was supposed to reload the page (live get of the site). On the contrary, it seems to continue to see the old content before the update.

    In another case I could be on page 21 and click on a link that goes to the publicationfootnote22 and made a few treatment database and then goes to the page33. In this case, my fees top22 updates are not appearing and showing just the old cache data.

    Q: what is the best way, at least while I am writing code, to force the Page to refresh (non-cache), I can see my updates all the time, because otherwise it becomes very confusing because I'm sure you know.

    Thanks in advance: Dave

    Hi Dave,.

    Are you handy with your developer tools? It's always where I head when I need to look inside something. Before getting anywhere in addition or developed, check the response code you get for the page request and see what is the numeric code. If it is 200, you get a new copy. If it is 304 then your browser is striking the same content or something in your UI is to preserve the previously loaded document fragment.

    Photos make it easy, Chrome this is grabbing a small page for the first time and with disable cache enabled, and we get the status code 200:

    If I keep refreshing with "Disable cache" activated so I keep getting GET/200, copy fees.

    However, delete the "disable cache" to speed things up and the server and the client negotiate and check if she even needs to send you the document (if she thinks she's changed), and if not, of course you GET/304, or "load cache:

    Whenever I update I get GET/304, hitting the cache.

    Make sure your requests are GET/200 if you expect not to be cached.

  • Export the properties and the related forms of a category of properties

    How to export all properties and their formulas for a particular property category. The reason why I want to do is to identify all the formulas where I used a good cause I do some changes to the same property. I want to make a list of all the accessories that need to be changed to.

    I'm sure there is a way to extract the database but don't know how to do that like the tech aspect of MDM is still not one of my strong suit.

    Thank you

    Tanuja

    Hi Tanuja,

    I don't have the exact answer to your question, but I guess I can hit it close enough.

    There is a way to document your possessions (practically everything you have in your design DRM) using the Migration utility that comes with DRM. This includes the categories of system and the property, properties, preferences, etc.).

    This should certainly help you with this question:

    1. you can go to your migration utility (http://localhost/mdm_migration)
    2. go in the option extract - here you can see the different options and click on what you want.
    3. you can play around with the options/filters you have and then run extract.
    4. download the metadata file when the extract is complete.
    5. what you have now is an XML file that is sort of pointless, BUT you can sort of convert in Excel--> you can drag and drop the file in an Excel workbook and "add as an XML list.

    6. you should have a fancy Excel file now with all documented (so much better than the manual documentation).

    I hope this helps.

    -Adi

  • Impossible to put up-to-date internet explore, real player and mozilla firefox

    I am unable to update my application on my pc. I use xp SP2. I recently tried to update my mozilla firefox from old version to the new and my real player too and even the Explorer internet, but after the installation of the internet at the end of the process I get this error LAUNCH BROWESER No. XBL BINDING for BROWSER WINDOW. How to fix this please tell me.

    You aski in forums of Real Player and the Firefox forums.

  • Test test. I noticed that my real name and not my screen name. What name post me so much that you see?

    Test test. I noticed that my real name and not my screen name. What name post me so much that you see?

    You are the only person who can see your real name (and the administrators of the site of course, they have access to everything). I see "SixSigmaGuy", like all the other 'normal' users on this site. Moderators even see your real name. You can check this by copying the URL in this thread, disconnect and then paste this URL in your browser.

  • The control properties

    Currently, I am trying to define a number of different control properties, a button in this case, leave in actionscript.

    I use eclipse and action script, when I type the ID of the control and '.' a number of properties is displayed. Unfortunately, I can't see any fillcolour or click! And I don't know why. Although I can choose the .visable option. Can someone please help?

    When I include the fillcolour or click. The code does not compile and mentions something on the button is static!

    BackgroundColor (there are no filler) and the click Properties. backgroundColor is a style; Click is an event. label is a property.

    To set an event handler, you need to do:

    test.addEventListener ("click", someFunction );

    where: private function someFunction(event:flash.events.MouseEvent): Sub is the signature of the click event handler.

    To set a style:

    test.setStyle ("backgroundColor", 0xFF0000);

  • Reference Dell MD3200i correct editing with IP system and the NIC for faster network speeds

    Hi all

    I worked on this project for a while now. I did a lot of research and have contacted Dell several times. I need help.

    I have 2 sets of identical to use for Hyper-V clusters servers. We bought a Dell MD3200i in November, we also bought a Dell 5424 switch and a Cisco SLM2048 switch. These servers have Real Tek 2 network cards for iSCSI Jumbo frames is 9 k

    The Dell MD3200i is two SAN controllers. Dell 5424 is the iSCSI optimized switch and Cisco is a 48 switch ports. iSCSI is on its own network that nothing else is connected to it. (There is an Iomega NAS and a promise Vtrak SAN Tech with all current domain of execution with iSCSI controller)

    Reference Dell MD3200i controller 0 Port 0 192.168.130.101 controller 1 Port 0 192.168.131.101

    Controller controller Port 1 0 192.168.130.102 1 1 192.168.131.102

    Controller controller Port 2 0 192.168.130.103 1 2 192.168.131.103

    Controller controller Port 3 0 192.168.130.103 1-3 192.168.131.104

    Cisco switch has 1 VLAN n ° 1 on it and the 130 subnet inside elements. There are 8 connections to the switch. 4 controller 0 and 1 of each of the servers. It has an IP of 192.168.132.4, but that switch IP does not make difference. Lighted Jumbo frames

    Dell switch has 2 of #1 for various things such as the domain controller, Vtrack, and SIN. Subnet 2 is 131 and has a total of 8 connectors inside. 4 in 1 controller and 1 from each of the servers. Lighted Jumbo frames. The switch IP address is 192.168.132.2

    Groups of servers. Each server node running Windows 2008 R2 SP1 and running hyper-v with virtual server clusters / storage folder on them. 2 Realtek NIC with Jumbo frames made 9 k ProdNode1 and ProdNode2 have 12 Core i7 CPU with 12 GB memory, EXNode1 and ExNode2 have 12 Core i7 CPU with 24 GB of memory.

    ProdNode1 iSCSI-1 192.168.130.110 ProdNode1 iSCSI-2 192.168.131.110

    ProdNode2 iSCSI-1 192.168.130.120 ProdNode2 iSCSI-2 192.168.131.120

    ExNode1 iSCSI-1 192.168.130.130 ExNode1 iSCSI-2 192.168.131.130

    ExNode2 iSCSI-1 192.168.130.140 ExNode2 iSCSI-2 192.168.131.140

    Portal discovery iSCSI on ProdNode1 went to 192.168.130.110 192.168.130.101 and 192.168.131.110 192.168.131.101 each of the other servers Discovery Portal have been pairs like this.

    iSCSI tab click on add 8 MPIO sessions at each of the ports on the MD3200i from Dell, target. For example, I added 1 session of 192.168.130.101 using it. Add Session,--> activate--> Advanced Mutlipath--> Local--> IP 192.168.130.110 initiator and target 192.168.131.101 iSCSI adapter. This is repeated on all servers. 4 connections for each NIC.

    The network is very slow. It revolved around 2 to 4 MB/MIN and it should be much faster. Initially, we had only the Cisco switch with only 1 VLAN and everything connected directly to it. I read somewhere that MPIO has been the problem, so I went through the same configuration but does not verify the MPIO checkbox above. Once this has been done, the network speed went up to 1.5 GB/Min but modular storage Dell was not happy, and virtual servers would fail and the connection is not very stable.

    What wrong with my setup? Can I directly home and fix the servers directly to the PowerVault and will make stable and allow for failover and redundancy NIC? I need to get this stable so I can move with something else.

    Thank you Ron

    You will need to change your system of intellectual property on this:

    rbramble
    EX-Node1 iSCSI-1 192.168.130.130
    EX-Node1 iSCSI-2 192.168.131.130
    EX-Node2 iSCSI-1 192.168.132.140
    EX-Node2 iSCSI-2 192.168.133.140
    Prod-Node1 iSCSI-1 192.168.130.10
    Prod-Node1 iSCSI-2 192.168.131.10
    Prod-Node2 iSCSI-1 192.168.132.20
    Prod-Node2 iSCSI-2 192.168.133.20
    Reference Dell MD3200i
    Controller 0 Port 0 - 192.168.130.101 Jumbo Frames 9K
    Controller 0 Port 1 - 192.168.131.101 Jumbo Frames 9K
    Controller 0 Port 2 - 192.168.132.101 Jumbo Frames 9K
    Controller 0 Port 3 - 192.168.133.101 Jumbo Frames 9K
    Controller 1 Port 0 - 192.168.130.102 Jumbo Frames 9K
    Controller Port 1 1 - 192.168.131.102 Jumbo Frames 9K
    Controller 1 Port 2 - 192.168.132.102 Jumbo Frames 9K
    Controller 1 Port 3 - 192.168.133.102 Jumbo Frames 9K

    Your iSCSI sessions will be:

    For EX-Node1:

    -192.168.130.130 to 192.168.130.101

    -192.168.130.130 to 192.168.130.102

    -192.168.131.130 to 192.168.131.101

    -192.168.131.130 to 192.168.131.102

    For EX-Node2:

    -192.168.132.140 to 192.168.132.101

    -192.168.132.140 to 192.168.132.102

    -192.168.133.140 to 192.168.133.101

    -192.168.133.140 to 192.168.133.102

    For Prod-Node1:

    -192.168.130.10 to 192.168.130.101

    -192.168.130.10 to 192.168.130.102

    -192.168.131.10 to 192.168.131.101

    -192.168.131.10 to 192.168.131.102

    For Prod-Node2:

    -192.168.132.20 to 192.168.132.101

    -192.168.132.20 to 192.168.132.102

    -192.168.133.20 to 192.168.133.101

    -192.168.133.20 to 192.168.133.102

  • Using keyframes for the path expression access but use motion to set speed

    Graphic type work I do now involves simple animations of boxes across the screen. For example, the layer we could spend x pixels, pixels are layer 2, layer 3 pixel z, etc. So far, I've been keyframing these movements, but, as the distances, the different starting points and end varies a lot, I find that the speed of the movements vary and I want them all at the same speed. I can judge by the eyes or watch the keyframe graph, but I would find it rather an expression that looks like my start and end keyframes and moves the whole at a standard speed.

    I came with this expression to create a movement between two points at 400 pixels per second in the horizontal plane, but it does not work:

    K1 = key (1) .time;

    K2 = .time key (2);

    A = valueAtTime (K1);

    B = valueAtTime (K2);

    T = time-K1;

    If (time < K1) [value [0], [1]];

    else [A [0] +(T*400), value [1]];

    flange (position, A, B)

    If I remove the line of final tightening, then the animation starts and proceeds as you like, but does not stop. I put in the line of pliers, thinking it would stop the animation to the desired position, but it seems to reduce to nil the last lines of code and the animation follows the time where original keyframes.

    Thanks for any help.

    John

    I think it works:

    K1 = key (1) .time;

    K2 = .time key (2);

    A = valueAtTime (K1);

    B = valueAtTime (K2);

    d = length (A, B);

    hard = d/400;

    Linear(Time,K1,K1+dur,A,B)

    Dan

  • When you create keyframes on the timeline, why it sometimes to add Bezier handles and sometimes not?

    OK, so one of the key steps in my workflow is to make a manual pass audio "normalizing." Yes, I get the feeling that it could be automated tools that could do a better job, but I'm also listening to the content.

    But what makes me a little crazy right now, is that sometimes, the ctrl-click adds a normal keyframe and other times, it adds a handful of order for a Bezier curve. It is especially common when you are speed bumps, but it is just so inconsistent it makes me crazy.

    I'm working on a script and in the middle of the sequence, there is a clip where he also adds Bezier curves. And when I try to drag the keyframe down, he grabs the Bezier handle instead, creating this weird S-curve.

    I don't know what I'm doing differently in this segment compared to other places. Hundreds, if not thousands of changes such as this and I have not encountered a problem like this.

    Undo and do that again causes the same thing.

    But one segment, creating keyframes does not create Bezier handles.

    ????????

    Production Premium CS6

    If you click ctrl you add a linear keyframe TI you ctrl click (accidental?) again in this key frame, it turns into an auto Bezier

  • My speed has decreased between the router and the modem is not working properly, what can I do to increase the download speed with my Time Capsule 802.11n

    My speed has decreased between the router and the modem is not working properly, what can I do to increase the download speed with my Time Capsule 802.11n

    A variety of phenomena can affect the performance of its wireless network. You may be able to mitigate some negative effects.

    Solutions to any factors that may have an impact on your wireless network, read use the Diagnostics wireless for you help to solve the problems of Wi-Fi on your Mac - Apple Support.

  • Satellite C660-1F1 - Question about newer drivers and the speed of the memory

    Some of the drivers for this laptop are outdated compared to the most recent drivers on peripheral manufacters website. Is it safe to use these new drivers or is it recommended to stick with the old drivers that are on the Toshiba site?

    And second question: is it possible to make the fastest possible working memory supported? Don t BIOS options include options for the parameters of memory. Why the memory is running as low mhz in case of default? CPU - Z shows that the current frequency of dram is 532, 2 mhz. What is the maximum, it is at 667 mhz? Probably she can´t be 1 066 MHz as promised in the specs?

    Hi cryogenized,.

    > Some of the drivers for this laptop are outdated compared to the most recent drivers on peripheral manufacters website. Is it safe to use these new drivers or is it recommended to stick with the old drivers that are on the Toshiba site?
    Why you want to update your drivers? Do you expect a gain of performance with newer drivers?

    Way General, with official Toshiba drivers you are on the safe side because they are pre-tested. If you can make sure that they work properly and don t cause property damage. Install the other drivers happens on your own risk!

    > And second question: is it possible to make the fastest possible working memory supported? Don t BIOS options include options for the parameters of memory. Why the memory is running as low mhz in case of default? CPU - Z shows that the current frequency of dram is 532, 2 mhz. What is the maximum, it is at 667 mhz? Probably she can´t be 1 066 MHz as promised in the specs?
    The laptop is equipped with modules of DDR3 1066 MHz and the RAM speed is dependent on the FSB of the processor. If your CPU is throttling down, RAM modules will work also on low speed. On a high utilization of the processor (100%) the RAM modules must run with speed of 1066 MHz I think.

  • Is it possible to have Firefox 4 speed while keeping the menu much higher and the bar tab of Firefox 3?

    I want to increase the operating speed, but for my use of the new orientation of the tab bar, tabs favorite and engine of research would be counterproductive.

    It is very easy to do. By default on Windows XP, it will have the old style menu bar and the tab bar is not on top.

    If you have Firefox 4 put in place with the new UI, you can return to the older appearance by right-clicking a toolbar, then clicking on the entrance to the "Menu bar" to select. To change the position of the tab bar, right-click on a toolbar and click the entry "Tabs at the top".

Maybe you are looking for