Expression help needed - control speed of a pan via a slider

I've done this in the past but can't locate my old project, and my head is throbbing from last nite.....
I'd like to apply an expression to my null's position. I want it to pan horizontally at a speed specified with a slider control. I'd like it to be able to start, stop, and then continue. Doesn't need to ease in, but it'd be nice.
Speed = effect("Speed")("Slider");
OffsetX = effect("Offset")("Point")[0];
fps = 24;
x = OffsetX - (Speed * time * fps);
[x,243]
My problem multiplying "speed" with time means that when it stops (speed=0), it returns to the start position.... I need it to stay in place, and then continue when I animate the speed value back up.
Please help my hungover brain....

Here's a quick and dirty method:
>v = effect("Velocity")("Point");
vSum = 0;
for(t = 0; t <= time; t+=thisComp.frameDuration) vSum += v.valueAtTime(t);
value+vSum*thisComp.frameDuration
Unfortunately, it is pretty slow to calculate, and just gets slower the further you go down the timeline. Also, it doesn't actually produce continuous motion, so it doesn't play well with motion blur.
I'm working on a much more efficient expression that does work with motion blur, but I can't seem to get it to behave once you get past the last keyframe. If I have a breakthrough, I'll post it.

Similar Messages

  • Airpot express help needed to enable wireless printing.

    Hello and thanks to everyone who post on this fourm, I have read and learned alot over the past year. When I bought my Macbook last December It cam with an airport express router. At that time I has a mediocre isp and we were not able to trouble shoot the airport express so I gave up on trying to get it to work. Recently I got DSL and I am using my same linksys. I tried to hook up my airport ex tonight and again just screwed my entire internet up. I really think I will just continue to use my linksys for the net, but is there a way to run my printer downstairs through my airpot express but not use it for the web. Dont get me wrong Im sure they are good but I have spent between 10 to 15 hours reading and trying only to keep going back to linksys.
    Thanks so much for all the help

    The driver provided by HP doesn't work for network printing, because it bypasses the CUPS system. The only comm protocol you get is what was written into the driver - USB. Install the hpijs and ESP ghostscript driver set from:
    http://www.linuxprinting.org/macosx/hpijs/
    Second issue - the windows setup software enters the server queue name during setup, but we don't have that software on OS X. You need to find the queue name in the print server docs, then enter it next to IP address in OS X Printer Setup. Common queue names are L1, lp, lpt1, etc.
    Wait - just remembered I downloaded that manual for someone elses's question. The queue name is lp1 (el-p-one). So in Printer Setup select IP printer > LPD, and enter IP address and that queue name.
    Good luck.

  • IrisPen Express - help needed with driver no loading

    Anyone use IrisPen (Express or Executive; they don't sell IrisPen II anymore) with their MacBook (I'm using os.10.4.8)? I used IrisPen II with my old Windows and the hand scanner worked great. But it was old and not working well.
    Bought new IrisPen Express & after installing software & rebooting (putting pen into USB after installation & before restarting) the software still doesn't recognize the pen. It says: "pen unplugged; driver unloaded."
    Tried everything I can think of. Called IrisPen (un)support help desk and they recommended testing the pen. Instead I bought another new IrisPen, thinking my 1st pen was bum. Now 2nd pen still a problem. Get exact same error message!!
    IrisPen supposed to work with Mac os.x
    Any ideas?

    Had to use the Basic connection type and get the right combination of options. I can now connect to my remote Express server with my local sql developer program.

  • Regular expression help needed

    Hello experts,
    I am looking to implement a search & replace regular expression
    my regular expressions are as follows:
    search regular expression = (test\\s+--\\s*)?this is a test(.*)?
    replace regular expression = (new) brand new test$2
    i.e. The results I require are
    case 1
    input string = test -- this is a test 1999
    correct result = (new) brand new test 1999
    or (since I require the regular expression to be optional)
    case 2
    input string = this is a test
    correct result = brand new test
    How do I implement this using pattern and matcher? Sample code would be useful
    I am having difficulties because matcher.appendReplacement will always replace because my regular expressions are optional. (which is incorrect)
    i.e. I am getting the following incorrect result ((new) is being appended)
    input string = this is a test
    incorrect result = (new) brand new test
    At the moment my non working code is
    StringBuffer sb = new StringBuffer();
    Pattern pattern = Pattern.compile("(test\s+--\s*)?this is a test(.*)?");
    Matcher matcher = pattern.matcher("this is a test");
    if(matcher.find())
    matcher.appendReplacement(sb, "(new) brand new test$2");
    String result = sb.toString();
    System.out.println(result);
    }In the above scenario I want the output to be 'brand new test' without the (new) because the input string did not contain 'test --'
    Hope this makes sense
    Thanks

    For example: StringBuffer sb = new StringBuffer();
    Pattern pattern = Pattern.compile("(test\s+--\s*)?this is a test(.*)");
    Matcher matcher = pattern.matcher("this is a test");
    if(matcher.find())
      matcher.appendReplacement(sb, ""); // copy everything before the match
      if (matcher.start(1) != -1)
        sb.append("(new) ");
      sb.append("brand new test");
      sb.append(matcher.group(2));
    matcher.appendTail(sb); // copy everything after the match
    System.out.println(sb.toString()); Because the first group is optional, you need to find out whether it participated in the match before you add the "(new) " bit. The second group doesn't need to be optional because (1) the subexpression with the group can match nothing, and (2) you don't need to perform a different action depending on what that group did. You just append the captured text, which may be an empty string.

  • Regular Expressions help needed.

    Hi,
    I have lines like
              <div id="contentSub">         26
              /*]]>*/</style>         27
    <ul>         30
    Dylan is gay         36
    var wgNamespaceNumber = 0;         41You see every line is contained a string plus some white spaces then plus a number.
    How to retrieve the strings?
    Such that becomes
    <div id="contentSub">
              /*]]>*/</style>
    <ul>  
    Dylan is gay   
    var wgNamespaceNumber = 0;  And also get the number by a regular expression
    26
    27
    30
    36
    41Thanks

    I believe that
    "^(.*)\\s+(\\d+)$"would do the trick. Pick the two groups out from the Matcher.

  • Regular Expression help needed plzzz

    Hi,
    I am trying to form a regular expression in order to search for say two char patterns and both the patterns should be present. Say I have a string example = "ModeleerComponent.java,1.1"I am using a regular expression to find whether the user input matches with it or not. For example the user can enter Mod and 1.1...now since the string contains Mod and 1.1 the result should be true.
    This is how my regular expression looks regex = ^(?=.*?Mod)(?=.*?1\.1).*$ so now the result is true is okay. But if I enter code]regex = ^(?=.*?asdfg)(?=.*?1\.1).*$ it should return false but it returns true. As 1.1 is present. Could someone tell me how I could use an AND that is when both Mod and 1.1 are present then only return true.
    I hope whatever I have written is understandable.
    Thank you very much.

    Or this:
    public class TestRegex {
        public static void main(String[] args) {
                String example = "ModeleerComponent.java,1.1";
                System.out.println(example.indexOf("Mod") != -1 && example.indexOf("1.1") != -1);
    }returns:
    true

  • Regular Expression Help Needed - Thanks

    Hi
    Can someone please tell me how to the regex to search for the a world not preceded by another word.
    ex. search for the word "Hardcover" NOT preceded by the word "Not"
    ... Hardcover ... -> OK
    ... Not Hardcover ... -> BAD, because there's a "Not" before "Hardcover"
    thanks

    Use negative lookbehind:   Pattern p = Pattern.compile("(?<!Not )Hardcover");http://www.regular-expressions.info/

  • Logic express help needed

    complete logic beginner - where can i find a logic express teacher in north london?

    The Demo Song is on the "Content" install DVD.
    Ya, I thought I had the same problem. Installed Logic Express, opened it up, and tried to make sound. Nothing.
    But I opened the Demo Song, and I hit play and everything worked fine.
    I don't understand this yet

  • Help Needed!  I have created a 13 Min Slide Show in iPhoto (iMac Mavericks) but am having problem with adding music.

    I created a 13 min Slide Show in iPhoto but have a question on adding music.  I would like to add music clips that are set to change at the beginning of certian slides so that there is a varity of music during the show rather than a continuous theme clip.  I know you can add multiple clips but can you pin them to change at a particular point in the program?  Right now the music clips just run to their time limit and the next one starts.  Isn't there a way to edit them the way it can be done in iMovie? Its frustrating to be able to create a nice slide show and not be able to manage the music background.  Any suggestions would be greatly appreciated.  Thanks.

    No, you don't have that fine grained control of the soundtrack in iPhoto. It's designed for a quick job, not a complex one.
    Alternatives to iPhoto's slideshow include:
    iMovie is on every Mac sold.
    Others, in order of price:
    PhotoPresenter  $29
    PhotoToMovie  $49.95
    PulpMotion  $129
    FotoMagico $29 (Home version) ($149 Pro version, which includes PhotoPresenter)
    Final Cut Pro X $299
    It's difficult to compare these apps. They have differences in capability - some are driven off templates. some aren't. Some have a wider variety of transitions. Others will have excellent audio controls. It's worth checking them out to see what meets your needs. However, there is no doubt that Final Cut Pro X is the most capable app of them all. You get what you pay for.

  • Workflow help needed VCR to DVD and HDD via Canopus AVCD110

    I think that some of this subject has been addressed in previous posts. This is a new area for me and I am not sure that my configuration has been addressed previously so I am seeking help.
    I have already transfered some home movies from VCR to iMovie 09 using the Canopus. I have not edited any of it at this stage.
    Some of the tape is old and deteriorated. This shows on the IM09 clips as horizontal static across the frames. Someone suggested that I use a Video Enhancer (hardware costing around $100)between the VCR and the Canopus to lift quality. I have also found on the web a software solution (Video Converter) which claims to also enhance quality and de-noise. Does anyone have any experience or recommendations on either of these as a means of lifting the video quality?
    The next issue surrounds the use of MPEG Streamclip. I have gathered from other posts the necessity of using this program to convert the captured DV files to AIC to ensure the finished quality before editing and sending to Toast or iDVD. I am interested in any feedback on this process?
    Finally, I would like to be able to view the finished product on a WD TV Live and have another copy on DVD. Given that I have Toast 10 what is the best way of completing these tasks?
    I haven't taken the leap to a BluRay burner yet but I am thinking about it.I understand that it is better for archiving than DVD and the capacity would suit the quantity of video I have.
    Any and all feedback and recommendations on the (complete) workflow would be appreciated?

    I think that some of this subject has been addressed in previous posts. This is a new area for me and I am not sure that my configuration has been addressed previously so I am seeking help.
    I have already transfered some home movies from VCR to iMovie 09 using the Canopus. I have not edited any of it at this stage.
    Some of the tape is old and deteriorated. This shows on the IM09 clips as horizontal static across the frames. Someone suggested that I use a Video Enhancer (hardware costing around $100)between the VCR and the Canopus to lift quality. I have also found on the web a software solution (Video Converter) which claims to also enhance quality and de-noise. Does anyone have any experience or recommendations on either of these as a means of lifting the video quality?
    The next issue surrounds the use of MPEG Streamclip. I have gathered from other posts the necessity of using this program to convert the captured DV files to AIC to ensure the finished quality before editing and sending to Toast or iDVD. I am interested in any feedback on this process?
    Finally, I would like to be able to view the finished product on a WD TV Live and have another copy on DVD. Given that I have Toast 10 what is the best way of completing these tasks?
    I haven't taken the leap to a BluRay burner yet but I am thinking about it.I understand that it is better for archiving than DVD and the capacity would suit the quantity of video I have.
    Any and all feedback and recommendations on the (complete) workflow would be appreciated?

  • Help Needed!! - Sending Quiz Results Via Email

    Sorry guys if this is the wrong forum to post this topic in,
    I created a piece of e-learning with a simple quiz. I want a
    simple mail to be generated and sent to me once someone has either
    passed or failed this quiz,
    I think i'm doing everything right:
    Preferences - Quiz - Reporting - i select the email option,
    and enter my email address. This should mean that once a quiz is
    completed a .csv file should be sent to my email account.
    I then go on to publish the project as .swf file. It runs
    through fine, but no mail is generated and sent? Does anyone have
    any suggestions as to where i may be going wrong,
    Sorry if this was posted before, i've had a look around and
    couldnt see it?
    Thanks,
    Charlie

    This is a double-post. Probably a forum malfunction.
    Click
    here to read or reply to the original thread.

  • HELP: Controlling speed of photo slider

    I need some help in controling the speed of this simple photo
    slider. Here's what I have.
    Individual movie clip(Photo):
    onClipEvent (enterFrame) {
    _root.xdist = (_root._xmouse-_root.xcenter)/20;
    Main Action:
    movieWidth = 300
    xcenter = movieWidth/2
    // this code loops right
    function movePiece (target) {
    with (target) {
    _x += xdist;
    if (_x>movieWidth+_width/2) {
    _x = -_width/2;
    if (_x<(0-_width/2)) {
    _x = movieWidth+_width/2;
    What action code, etc. can I put into this code to slow down
    the scrolling or control the scroll speed? Any help would be
    appreciated! Thanks

    Thanks, I can't believe I missed that. That worked. The
    higher the # the slower.
    Thanks-B

  • I need help with controlling two .swf's from third.

    Hi, thanks for reading!
    I need help with controlling two .swf's from third.
    I have a problem where I need to use a corporate designed
    .swf in a digital signage solution, but have been told by the legal
    department that it can not be modified in any way, I also can't
    have the source file yada yada. I pulled the .swfs from their
    website and I decompiled them to see what I was up against.
    The main swf that I need to control is HCIC.swf and the
    problem is it starts w/ a preloader, which after loading stops on a
    frame that requires user input (button press) on a play button,
    before the movie will proceed and play through.
    What I have done so far is to create a container swf,
    HCIC_container.swf that will act as Target for the HCIC.swf, and
    allow me to send actionscript to the file I'm not allowed to
    modify.
    I managed to get that done with the help of someone on
    another forum. It was my hope that the following script would just
    start HCIC.swf at a frame past the preloader and play button, and
    just play through.
    var container:MovieClip = createEmptyMovieClip("container",
    getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener(this);
    mcLoader.loadClip("MCIC.swf", container);
    function onLoadInit(mc:MovieClip) {
    mc.gotoAndPlay(14);
    But unfortunately it didn't solve my problem. Because there
    is a media-controller.swf, that is being loaded by HCIC.swf that
    has the controls including the play button to start HCIC.swf.
    Here's a link to a .zip file with all 3 .swf files, and all 3
    .fla files.
    http://www.axiscc.com/temp/HCIC.zip
    What I need to do is automatically start the HCIC.swf file
    bypassing the pre-loader and play button without editing it or the
    media-controller.swf in anyway. So all the scripting needs to be
    done in HCIC_container.swf.
    I know this is confusing, and its difficult to explain, but
    if you look at the files it should make sense.
    ActionScripting is far from my strong point, so I'm
    definitely over my head here.
    Thanks for your help.

    Got my solution on another forum.
    http://www.actionscript.org/forums/showthread.php3?t=146827

  • HT3951 helo   when i want to dollar from the online manager football and need for speed the game , i try to buy but i cannot because they told ( your purchase could not be completed contact itunes store support to complete this transaction.)  pleasr help

    helo
    when i want to dollar from the online manager football and need for speed the game , i try to buy but i cannot because they told ( your purchase could not be completed contact itunes store support to complete this transaction.)
    pleasr help me for that , i can not buy any thing inside the game .
    i wating , thank you
    Email : [email protected]

    Click here and request assistance.
    (75245)

  • Help FX 5500 / ModName: speed2.exe Offset: 001d2780 (Need for Speed Underg.. 2)

    Hi 
    Need for speed Underground 2 Crash....with my new MSI - Fx 5500 128 MB
    This is the error message:
    AppName: speed2.exe    AppVer: 0.0.0.0    ModName: speed2.exe
    ModVer: 0.0.0.0    Offset: 001d2780
    With my old card (Geforce 4 MX 460 VTP) works fine....
    My computer
    Mainborad:  Intel D850EMV2
    RAM:   512 MB
    Processor :   2.4 Ghz
    Disk 80 GB
    VGA:   MSI- FX 5500 128 Mb
    Driver version:   7.7.7.2
    Windows XP Sp2
    Please help me......
    thanks

    Quote from: Jorgesharp on 01-January-06, 01:02:37
    The driver 7.x not work fine with Need for Speed u 2...
    Only 6.x works fine....Soooo Slowly....but fine
    Reinstall directX 9.0c. From Microsofts Website.
    + is it original or pirate ?
    also.. what USB devices are you running ?

Maybe you are looking for