+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    26
    Thanks
    2
    Thanked 1 Time in 1 Post

    Wiggle at specific time

    So I wrote this expression:

    Code:
    timeToStart = 1; 
      if (time > timeToStart){ 
         a =  wiggle(3,100);  
        [a[0],value[1],value[2]];
      }else{ 
          value; 
      }
    But I want to start wiggling at 1.3s. After var. timeTostart change wiggle still starts at 1s. So how to format time properly that I could start at more specific time?

  2. #2
    Power User
    Join Date
    Sep 2011
    Location
    California
    Posts
    331
    Thanks
    20
    Thanked 30 Times in 29 Posts

    Re: Wiggle at specific time

    *blink blink*

    Huh?

  3. #3
    Junior Member
    Join Date
    Jul 2011
    Posts
    26
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Wiggle at specific time

    I set an expression for a shape:
    Code:
     wiggle(3,100);
    Shape wiggles, but wiggling begins and lasts all the composition time. I want to control when wiggle starts. So I write this:
    Code:
    timeToStart = 1;    if (time > timeToStart){       a =  wiggle(3,100);       [a[0],value[1],value[2]];   }else{        value;    }
    Now shape stats to wiggle after 1s (timeToStart = 1).
    I need to start wiggle after 1:30s Unfortunately when timeToStart is set to 1,30 or 1:30 it still rounds back to 1 so shapes starts to wiggle after 1s.
    How can I make AF to understand that I need to start wiggle at 1:30s.

  4. #4
    Forum Mod
    Join Date
    Jun 2011
    Location
    Uk
    Posts
    5,597
    Thanks
    85
    Thanked 448 Times in 423 Posts

    Re: Wiggle at specific time

    what is your composition set up are you in mins seconds or frames normally your 1.3 could be right but if you have wrong units set up then it could be 0:90 for seconds
    Last edited by Hoogle; 09-24-2011 at 01:48 PM.

  5. The Following User Says Thank You to Hoogle For This Useful Post:

    JustinR (09-25-2011)

  6. #5
    Forum Mod
    Join Date
    Jun 2011
    Location
    Uk
    Posts
    5,597
    Thanks
    85
    Thanked 448 Times in 423 Posts

    Re: Wiggle at specific time

    or maybe an easier option is to just keyframe an empty Null object and pig tail whip to it. without knowing exactly what your doing hard to say what is best. I think video copilot do a free course on expressions and wiggle commands.

  7. #6
    Forum Mod
    Join Date
    Jun 2011
    Location
    Uk
    Posts
    5,597
    Thanks
    85
    Thanked 448 Times in 423 Posts

    Re: Wiggle at specific time

    humour me and try the obvious and set it to 1.5

  8. #7
    Silly Trucker
    Join Date
    May 2011
    Location
    Trucking the big roads, dust and all.
    Posts
    4,530
    Thanks
    43
    Thanked 228 Times in 223 Posts

    Re: Wiggle at specific time

    Humour me?...


  9. #8
    Junior Member
    Join Date
    Jul 2011
    Posts
    26
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Wiggle at specific time

    Thanks Hoogleman for response. Neither 1.5, 1,5, 1:5, "1:5" worked, but I thought about idea of counting frames and I wrote this:

    Code:
    frames = timeToFrames(t = time + thisComp.displayStartTime, fps = 1.0 / thisComp.frameDuration, isDuration = false);
    
    timeToStart =31;   
      if (frames> timeToStart){ 
         a =  wiggle(3,100);  
        [a[0],value[1],value[2]];
      }else{ 
          value; 
      }
    So now I check how many frames have passed, if my composition frame rate is 15 frames per second I can easily calculate the start time of wiggle.
    Example: 30 / 15 = 2 after 2 seconds wiggle will start.
    Example: 35 / 15 = 2 after 2,(3) seconds wiggle will start and so on...

  10. #9
    Forum Mod
    Join Date
    Jun 2011
    Location
    Uk
    Posts
    5,597
    Thanks
    85
    Thanked 448 Times in 423 Posts

    Re: Wiggle at specific time

    the time frame should be simple though so has this corrected it or are you still having problems However as I believe an expression is amount of wiggles per second so maybe it will always round up or round down. But here is what I think it should be but I have not got after effects on my laptop to test it out. and tweak the values to whatever works best for you. Other than this I am out of ideas.
    timeToStart = 1.5; if (time > timeToStart){ wiggle(3,100); }else{ value; }and then to end animation should be something like this
    timeToStop = 4; if (time > timeToStop){ value; }else{ wiggle(3,100); }

  11. #10
    Forum Mod
    Join Date
    Jun 2011
    Location
    Uk
    Posts
    5,597
    Thanks
    85
    Thanked 448 Times in 423 Posts

    Re: Wiggle at specific time


 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.9
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO 3.6.0
Copyright 2011 Photoshop Gurus Forum. All rights reserved.
All times are GMT -5. The time now is 11:28 AM.
vBulletin Skins