Combine the Expression and keyframes

Hello guys... I hope that you are not annoyed with me for questions

Well, I got a problem (yet) here.

I want to do a gear rotates in some time.

I search on Google and I found an expression to solve.

He gave me this expression...

timeToStart = 2;

If (time > timeToStart) {}

Wiggle (3.25);

} else {}

value;

}

and I try to do that.

and what I got here isssssssssssss... Look at the picture below...

Screen Shot 2012-01-18 at 4.32.51 PM.png

I do my material start turning to 6; 14 seconds. Look at the Z rotation value, and its value is 0, x and 0 degrees. Look at the current time. It shows 0; 00; 05 29

When I moved it to my selection time, look at the picture below...

Screen Shot 2012-01-18 at 4.33.18 PM.png

Look at the current time! It displays 0; 00; 06 00 and my equipment starts to turn!

and look at the rotation values. It's suddenly at 1 x and 240.6 degrees!

All I want is just him starts turning gear in time as I want to and he'll leave x 0 and 1 degree... Suddenly can't be 1 x and 240,6... If the craft begins to spin with a gentle movement...

In the future, it would be preferable to ask questions of the expression in the Expressions of the AE forum. I'll give this one a shot here in any case...

The problem is that you set your rotation of time and you have not deducted from the start of the present time. It also seems that you want to start the rotation to 6 seconds and 14 images. You can't put timecode in as of the time this way. Time is a decimal value. Assuming that 29.97 FPS 6; 14 = 6.4

Try this:

timeToStart = 6.47;
  if (time > timeToStart){
      (time-timeToStart)*100;
  }else{
      value;
  }

The only other problem with your expression, is that the speed ramp smoothly. You can fix this by increasing the complexity of the expression or by rewriting the expression using a slider of expression to control the speed of rotation. If you do this, then you can simply set keyframes for the slider and the ramp up to speed or change speed over time with ease. You will get a better solution. Add a slider of Expression to your rotating layer, rename it to "rpm" and try this expression.

slider = effect("rpm")("Slider");//Expression Slider on this layer.
sv = 0;//start value
fNum = timeToFrames(inPoint);
while (fNum < timeToFrames()){
sv += slider.valueAtTime(framesToTime(fNum));
fNum++;
}
sv*thisComp.frameDuration*60

I think I got this Dan Ebberts solution a few years ago. When you get something like that you can reuse transform them into an Animation preset by selecting all the properties of the layer Animation > Save Animation preset. It took me a while to remember what I had called it.

Tags: After Effects

Similar Questions

  • Combine the device and Skype Contact views

    I use Windows Mobile 10 on a 735 Lumia and fact overview Skype SMS app on my phone. After turning "Synchronize my Skype contacts with the people app" I can now see my contacts from the device to Skype, but I can't combine with their corresponding device, the Skype contact. For example, someone has a Skype profile and we talk normally, but I want to switch the conversation between SMS and Skype in the same message thread. now I have to pass the wires. How can I combine them?

    I noticed that the Skype profile or the Microsoft account has not assigned; phone number the app is Skype app people profiles Skype based on the phone number?

    You can only toggle between Skype and SMS for Skype contacts who have a phone number in their Skype profile. Skype does not combine the contacts of the device and Skype. Then all the contacts where you can make the switch are Skype contacts with a few shone in their profile

  • The difference between the expression and the function?

    Could someone please explain me the technical difference? For example, I know CAST is an expression and To_CHAR would be a function, but what differentiates the expressions of functions?

    Hello

    2776946 wrote:

    Could someone please explain me the technical difference? For example, I know CAST is an expression and To_CHAR would be a function, but what differentiates the expressions of functions?

    What is the difference between a bird and an OWL?  An OWL is a special type of a bird.  All owls birds, but not all birds are fun.

    Similarly, a function is a particular type of expression.  All functions are expressions, nut not all expressions are functions.

    In fact, the CAST is a function, but you're not wrong when you say "CAST is an expression.

    Maybe you wanted to say, not MOUNT.  CASE expressions are expressions, but not the functions.

    The technical difference between the functions and the other types of expressions has to do with how they are being implemented and is not all that important to users.  Is DECODE function?  It depends on which version you use.  The Oracle 6, it was a function; in Oracle 8, it wasn't; Since Oracle 9 it is again a function.  I don't know what has changed; Maybe the documentation.

  • Combine the size and attributes with application Dates

    Hello, I'm trying to combine data from two tables (DIMENSION and ATTRIBUTES) below and load the data corresponding to the OUTPUT.

    Can anyone share idea on how I can combine the two? (attribute table has no ID and has only COUNTRY & TYPE to join DIMENSION)

    Version Oracle 11g: (11.2.0.2)


    DATA_SAMPLE.PNG

    CREATE TABLE DIM (ID VARCHAR2 (10), NAME VARCHAR2 (20), TYPE VARCHAR2 (20), COUNTRY VARCHAR2 (2), EFF_DT DATE, DATE END_DT);

    CREATE THE TABLE ATTRIBUTES (TYPE VARCHAR2 (20), COUNTRY VARCHAR2 (2), CHAR (1) OF THE CLASS, EFF_DT DATE, DATE END_DT);

    INSERT INTO VALUES('1','ABC','A','US',TO_DATE('30-SEP-2013','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY')) DIM;

    INSERT INTO VALUES('1','ABC','A','CA',TO_DATE('30-SEP-2013','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY')) DIM;

    INSERT IN DIM values('2','XYZ','B','US',TO_DATE('3-FEB-2014','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY'));

    INSERT IN the values('A','US','C',TO_DATE('1-JAN-2014','DD-MON-YYYY'),TO_DATE('28-SEP-2014','DD-MON-YYYY ATTRIBUTES '));

    INSERT IN the values('A','US','C',TO_DATE('29-SEP-2014','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY ATTRIBUTES '));

    INSERT IN the values('A','CA','E',TO_DATE('1-JAN-2014','DD-MON-YYYY'),TO_DATE('28-OCT-2014','DD-MON-YYYY ATTRIBUTES '));

    INSERT IN the values('A','CA','E',TO_DATE('29-OCT-2014','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY ATTRIBUTES '));

    Thank you.

    Maybe let separate everything first delete duplicates

    with

    Sun did

    (select id '1', the name of 'ABC', 'A' type, 'US' country, to_date('30-SEP-2013','DD-MON-YYYY') eff_dt, to_date('31-DEC-2099','DD-MON-YYYY') end_dt Union double all the)

    Select '1','ABC','A','CA',to_date('30-SEP-2013','DD-MON-YYYY'),to_date('31-DEC-2099','DD-MON-YYYY') of all the double union

    Select '2','XYZ','B','US',to_date('3-FEB-2014','DD-MON-YYYY'),to_date('31-DEC-2099','DD-MON-YYYY') of the double

    ),

    attributes such as

    (select 'A' type, countries 'US', 'C' class, to_date('1-JAN-2014','DD-MON-YYYY') eff_dt, to_date('28-SEP-2014','DD-MON-YYYY') end_dt Union double all the)

    Select 'A','US','C',to_date('29-SEP-2014','DD-MON-YYYY'),to_date('31-DEC-2099','DD-MON-YYYY') of all the double union

    Select 'A','CA','E',to_date('1-JAN-2014','DD-MON-YYYY'),to_date('28-OCT-2014','DD-MON-YYYY') of all the double union

    Select 'A','CA','E',to_date('29-OCT-2014','DD-MON-YYYY'),to_date('31-DEC-2099','DD-MON-YYYY') of the double

    )

    SELECT id, name, type, country, class, eff_dt, end_dt

    NVL (lead (eff_dt) over (partition BY id, type, order of eff_dt countries) - 1, end_dt) end_dt_new

    from (select distinct id, name, coalesce(type_d,type_a) type, country, case when x = 'a' then class end class, eff_dt,)

    -case when end_dt = date ' 2099-12-31' then add_months (trunc (eff_dt, 'yyyy'), 12)-1 else end_dt end end_dt

    from (select d.id, d.name, d.typ subscription_type, a.typ type_a, d.country, a.class,)

    d.eff_dt d_eff_dt, d.end_dt d_end_dt, a.eff_dt a_eff_dt, a.end_dt a_end_dt

    Dim d

    full outer join

    attributes one

    We d.country = a.country

    and d.typ = a.typ

    )

    UNPIVOT ((eff_dt,end_dt) for x in ((d_eff_dt,d_end_dt) as ' of,(a_eff_dt,a_end_dt) like 'a'))

    )

    order by 1,2,3,4,6

    ID NAME TYP COUNTRY CLASS EFF_DT END_DT END_DT_NEW
    1 ABC A CA - 30/09/2013 31/12/2013 31/12/2013
    1 ABC A CA E 01/01/2014 28/10/2014 28/10/2014
    1 ABC A CA E 29/10/2014 31/12/2014 31/12/2014
    1 ABC A WE - 30/09/2013 31/12/2013 31/12/2013
    1 ABC A WE C 01/01/2014 28/09/2014 28/09/2014
    1 ABC A WE C 29/09/2014 31/12/2014 31/12/2014
    2 XYZ B WE - 03/02/2014 31/12/2014 31/12/2014

    Concerning

    Etbin

  • Combine the vRO and vRO device Windows in a cluster

    Hi all

    After some problems with one of our 2 servers in Windwos vRO, we want to replace by vRO device.

    Is it possible to combine Windows vRO and vRO apparatus a vRO (under program F5 load balancer) cluster?

    And also, what are the disadvantages to the use of the device instead of the windows one?

    Thank you!

    Hello

    There should be no problem to combine vRO device and Windows vRO in a cluster.

    View functional-wise, camera and Windows distributions are roughly equivalent. They share the same files binary platform; the differences are mainly in the specific configuration/components (Linux vs Windows) OS.

    BTW, vRO 6.x is the latest version of the vRO server to ship with Windows Setup. From vRO 7.0, your only option to deploy the vRO server is to use the standalone vRO device or vRO grouped inside of vRA.

  • combine the alpha and visibility?

    Hi all

    Here it goes...

    I have this site with a melted white in / hide a menu.  I try to get the menu a little more visible.  Because the menu is in white font, and the images, he jumps at the chance to have a white background, it creates a little problem.

    I created a big clip that matches the height and the width of the stage.  I am the appellant "bg".  The idea is when one hovers over the menu 'projects', the bg movieclip fades to cloud the entire file with the exception of the menu.  I'll set the alpha of the bg initially to 0, while she can fade using TweenLite when the mc projects is overthrown, and fade out when projects are out.  I would like to just do it all using alpha if I could, but here's the problem: for screening to work on the whole of the file, she has also work on my loaded external Gallery buttons in the swf and it is.  When the mc bg disappears and all shades, he gets in front of the buttons and you can not access it.  Then... I need to combine the melted thing alpha with deactivation of the visible bg.  Is anyway to do this both at the same time?  Okay now I either get nice fades and the visibility does nothing, or nice fade ins BG, then an abrupt change when visibilty exceeds anything on the roll... Sorry this is confusing.  Here is the code I use.

    projects.addEventListener (MouseEvent.ROLL_OVER, onOverProj, false, 0, true);

    function onOverProj(evt:MouseEvent):void {}

    TweenMax.to (bg, 0, {visible: true});

    TweenLite.to (bg,.3, {alpha: 1});

    TweenLite.to (projects,.3, {alpha: 1});

    TweenLite.to (lakeside,.3, {alpha: 90});

    TweenLite.to (Athens,.3, {alpha: 90});

    }

    proj_hit.addEventListener (MouseEvent.ROLL_OUT, onOutProj, false, 0, true);

    function onOutProj(evt:MouseEvent):void {}

    TweenLite.to (projects,.3, {alpha: 90});

    TweenLite.to (lakeside,.3, {alpha: 0});

    TweenLite.to (Athens,.3, {alpha: 0});

    TweenLite.to (bg,.3, {alpha: 0});

    TweenLite.to (bg, 0, {visible: false});

    }

    Assign a complete listener to the alpha for the bg interpolation and use it to trigger a function to set the visibility to 0.  Search for TweenLite onComplete if you need help with the listener.

  • How to combine the background and graphics?

    This is my last question unanswered. Special thanks to all those who put up with me.

    So I was able to change my background color by creating a new layer and using the rectangle tool that I've changed to gray. The problem is that both windows dominate the other, so I don't see the window that is on top. It didn't in my other graph. I need to get the two layers together. The person I spoke with tech support is passed through the remote and couldn't do so I wonder if something is wrong with my chart.

    Jared,

    Also if you set two visible layers (the eye)?

    You might also just have the path of the base at the bottom of the same layer, under the graph (Ctrl / Cmd + C + B + X + B to be absolutely sure).

  • How can I transfer my address book from Thunderbird to another running Thunderbird computer and combine the old and the new list into one?

    I have a computer in my summer residence and one to my winter home. They both run Thunderbird for my emails. When I move one residence for others, I want to update my address book Thunderbird. I do it by selecting - address book - tools - export, on the ' old computer ', store them on a memory stick, and paste _ address book - tools - import, the new address to load the list from memory. It works, except that the address of old and new lists are separate lists. I would like to combine them, but without the duplication of the same addresses. Is this possible? How can I do this?

    http://KB.mozillazine.org/Moving_address_books_between_profiles
    http://forums.mozillazine.org/viewtopic.php?f=28 & t = 1588535

  • HP50g: HP50g - how to combine the programs and data of some units?

    Like some people on this forum, I have a few pieces of HP50g. On each article there are data and different programs. I'm tired of this mess and want to combine all the programs of all the units in a BASE directory and install the same programs on each unit. As I'll probably do this opreation from time to time in the future, I'm looking for an effective and convenient way to do it. Using the IR ports and programs sending one unit to another would be very slow. Backup on card standard SD also would not be useful in my view (make a backup of each unit, copy on the PC, but what then?).

    Someone on this forum would have hot suggestions to make?

    Hello

    Although you cannot select HOME directory as such, but you can select and copy some or all the elements in the HOME directory and copy only once on the SD card.

    In the FOLDERS menu go to the HOME directory and select the first item and press ENTER, the element highlight will receive a number 1 next to it. In addition to the selection of items with the button ENTER will be number 2, 3 etc. According to him.

    When you have selected all the items you want, COPY and select destination (SD). Unfortunately the built-in FILES does not select the subdirectories of the SD card, but I think that can SDFILER: SDFILER 1.3

    Kind regards

    Bart

  • combine the Lan and wi - fi internet connt

    I have an ADSL broadband through Lan connection with 1 MB/s speed

    And in my building, we also have a WiFi conection with speed of 1 Mbps. I tried so many times, but only one connection works only ontime. How to increase my speed and how the two connt work together?

    Windows vista 32 bit

    You cannot combine internet connections to increase your speed (or for any other reason).  You must choose one or the other.

    Sorry if this isn't what you wanted to hear, but it's like that.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • VM combining the Get - And Get-VMGuest CSV output

    Hello

    I am trying to generate a CSV file that combines different properties between the cmdlets Get - VM and Get-VMGuest but struggled.

    I am aware that the cmdlet Get - VM will give me an output like the number of processors, amount of memory per VM, vm name etc., but also want to retrieve properties such as its IP address, running OS, hostname, etc in the same CSV report.

    I tried to mix the taste.

    Get-vmguest - vm (get - vm). Select-object vmname, osfullname | Export-csv c:\vm_osreport.csv

    and a previous post by LucD-

    --------------

    Get - vm | %{
    $_ | Select name. Out-Default
    $_ | Get-VMGuest | Select the State, IPAddress, OSFullName | Out-Default
    }

    Now if you want the result in 1 object (or an array of objects) you could make

    Get - vm | %{
    $vm = "" | SELECT name, State, IPAddress, OSFullname
    $vm. Name = $_. Name
    $guest = $_. Get-VMGuest
    $vm. State = $guest. State
    $vm. IPAddress = $guest. IPAddress
    $vm. OSFullName = $guest. OSFullName
    $vm
    }

    --------------

    but can't seem to get what I want. Basically, I'm looking for is the output to a CSV file - next

    • vmhostname
    • IP address
    • numCPU
    • memoryMB
    • Allocated size of HD
    • GuestOS (as reported by VMTools)
    • Datacenter + file (if possible)

    Can anyone help please?

    Thank you!

    Given that the ownership of comments is present inside the VirtualMachine object returned by Get - VM, you can get these values without running the Get-VMGuest cmdlet.

    Something like that

    Get-VM  | Select Name, @{N="Hostname";E={$_.Host.Name}}, @{N="IP addr";E={[string]::Join(',',$_.Guest.IpAddress)}}, NumCPU,MemoryMB, @{N="HD size allocated (KB)";E={[string]::Join(',',($_.HardDisks | Select -ExpandProperty CapacityKB))}}, @{N="GuestOS";E={$_.Guest.OSFullName}}, @{N="Datacenter";E={Get-Datacenter -VM $_ | Select -ExpandProperty Name}}, @{N="Folder";E={$_.Folder.Name}} | Export-Csv C:\report.csv -NoTypeInformation -UseCulture
    
  • request to combine the view and another query. help please

    I created a view of an important application with several joins.
    view is called
    RM_REPORT

    Im trying to combine this query...
    Select ips_number, tnps1, tnps2, tnps3, TBEFB tnps3. EFBT_TNPS@EFB_ETPSCHP7
    point of view...
    the hook between the two are

    in the view tgeprop and ips_number in the query on the other will need eachother =.


    I can just make...
    SELECT * FROM
    (select * from RM_REPORT) A,
    (select ips_number, tnps1, tnps2, tnps3, TBEFB tnps3. B EFBT_TNPS@EFB_ETPSCHP7)
    WHERE A.TGEPROP = B.IPS_NUMBER
    SELECT A.*,B.* FROM
    RM_REPORT A,
    (select ips_number,tnps1,tnps2,tnps3,tnps3 from TBEFB.EFBT_TNPS@EFB_ETPSCHP7)B
    WHERE A.TGEPROP=B.IPS_NUMBER
    
  • How to combine the insert and where to ask?

    Hello..

    could someone guide me how to combine insert and where to ask questions?

    insert into tdc_imarspc (ANUMBER, EMF_ID, PRODUCT) values ('1234567', '65', ' ITF')
    where anumber not as "1234567".

    Thank you
    Balleur

    Hi, ballet,

    As Manu said, WHERE only works on a query.
    You can base a query relative to the double, like this:

    INSERT INTO
    tdc_imarspc (ANUMBER,     EMF_ID,     PRODUCT)
    SELECT          '1234567',     '65',     'ITFS'
    FROM         dual
    WHERE          anumber      NOT LIKE '1234567';
    

    Of course, you can use a literal, such as "1234567" in both places where I used the variable binding, but if you do not use a variable, why would you?
    You could also put all the literals in a subquery (duplicate), and column names of reference in the WHERE clause LIKE THIS:

    INSERT INTO
    tdc_imarspc (     ANUMBER,     EMF_ID,          PRODUCT)
    WITH     sub_q
    AS  (
        SELECT    '1234567' AS an,     '65' AS ei,     'ITFS' AS pr
        FROM      dual
        )
    SELECT          an,          ei,          pr
    FROM     sub_q
    WHERE      an      NOT LIKE '1234567';
    

    I guess that you don't really say

    an      NOT LIKE '1234567'
    

    If you use any ambiguity after LIKE, you may as well use! =

    an      != '1234567'
    
  • How to combine the string and variable in loop

    I need to get the following lines in a loop for, but miss me the possibility in actionscript3 to use this ['string' + i + 'word2'

    wing_mc.prop1_mc.rotation = - wing_mc.rotation;
    wing_mc.prop2_mc.rotation = - wing_mc.rotation;
    wing_mc.prop3_mc.rotation = - wing_mc.rotation;
    wing_mc.prop4_mc.rotation = - wing_mc.rotation;
    wing_mc.prop5_mc.rotation = - wing_mc.rotation;
    wing_mc.prop6_mc.rotation = - wing_mc.rotation;
    wing_mc.prop7_mc.rotation = - wing_mc.rotation;
    wing_mc.prop8_mc.rotation = - wing_mc.rotation;
    wing_mc.prop9_mc.rotation = - wing_mc.rotation;

    I tried things like

    for (i = 1; i < 10; i ++) {}
    This ["wing_mc.prop" + i + "_mc"] .rotation = - wing_mc.rotation;
    }

    or

    for (i = 1; i < 10; i ++) {}
    "wing_mc.prop"+ i +"_mc".rotation = - wing_mc.rotation;
    }

    It seems very simple
    I must be overlooking something

    Thanks in advance

    Kees

    "Although it works there is a little thing, I do not understand:
    This.wing_mc ["prop" + i + "_mc"] .rotation
    I think a point to separate the this.wing_mc ["prop" + i + "_mc"] AND .rotation '.

    Well, that's how. In fact, the syntax is similar to the table. There are no points when you read the value of a member of the group. In a way that object is an array of methods and parameters - we simply refer to them not whole but by name.

    I know it's all confused sometimes. :-)

  • Combining the timer and loop

    Somehow, I thought this might work:

    for (var a: number = 0; has < total; ++);

    {

    code

    code

    code

    code

    var autoTimer:Timer = new Timer (4000, 1);

    autoTimer.addEventListener (TimerEvent.TIMER, autoSlide);

    function autoSlide(e:TimerEvent):void

    {

    trace (URL);

    }

    }

    The idea is to load a URL (code charger not included in this) in an XML list every four seconds. The loop must not repeat the cycle until the function is complete. But he shakes down all 99 URL in a fraction of a second. I'm so bad (think)?

    Any help much appreciated.

    Thank you.

    Why don't you try just a simple timer?

    Well, if you really need a variable number as when you use a loop for example, you can use something like this:

    var waitingTime = 1000;
    var xmlListLenght = 15+1; //+1 just to remember that your xmlList starts with 0
    var timesToLoop = xmlListLenght;
    var xmlListItem = 0;
    
    var myTimer:Timer = new Timer(waitingTime, timesToLoop);
    myTimer.addEventListener("timer", timerFunction); //TimerEvent.TIMER
    myTimer.start();
    
    function timerFunction (e:TimerEvent) {
         trace(String(xmlListItem) + " working");
         xmlListItem++;
    }
    

    I hope it works for you!

Maybe you are looking for

  • Had to reinstall Windows and now Skype won't let me open a session.

    So the SSD, I had 10 installed windows on seems to be dead (the PC crashed and then wouldn't start on the correct hard drive. The hard drive also would not put in evidence in the BIOS any SATA port I used), then I reinstalled since on a backup drive

  • The iphone has WPS (WIFI) button? Because I really want an IPhone!

    The iphone has WPS (WIFI) button? Because I really want an IPhone!

  • Where is .exe of the companion search on drive C in XP?

    Where is .exe of the companion search on drive C in XP? I want to put in place a direct link to it on my keyboard instead of having to go to Windows Search & selection Research Assistant.

  • Evolution M17x - R3 Graphics Card options?

    Hi all, I know that this question was put to death, little but here goes. M17X R3 | GTX560M | 120 MHz screen | 16 GB OF RAM. I7 2720QM | SSD + HDD I want to upgrade the graphics card (previously I had made the gesture of upgrade to a 580 M but unfort

  • What is windows 7 xDark

    My son wants a computer for the game, he said to the computer that his friend has a system of «windows 7 xDark» operating I've never heard of this system and can not find it on any computer store site If such operating system exists and if so where c