Repeating/looping animation layers

I have an animation with 8 pictures. The pictures fade in and
fade out. So, for example, pic 1 fades in and then stays
steady/solid for some time and then fades out, just as pic 1 fades
out, pic 2 fades in and so on. But the problem arises once the
process repeats. As the last picture is fading out, pic 1 is fading
in and a quick white background appears and then pic1 reappears
because the animation has looped back to the beginning. How can I
get the last picture to fade out and the first pic to fade in look
like the other transitions? I want to avoid the white background
from showing up and have a smooth transition like the other ones.
Thanks

As the last pic fades out, fade in the first pic. Sounds like
you are doing that.
Then on the very last frame, put in the Actions panel:
gotoAndPlay("loop");
Then go to the frame near the beginning (but not the first
frame) where pic 1 has just finished fading in, so it is solid.
Select that frame and in the Properties panel put "loop" in the
lower left in the <Frame Label> text box.

Similar Messages

  • Looping animation not working with Timeline Action...

    I've used the Timline Actions Panel a few other times to loop animations by just selecting 'Complete' and then using sym.play(0); to return to the beginning - pretty hard to mess up I thought.  I have a new animation where this is just not working at all.  Could there be any other reason this is not working or perhaps something I'm just not looking at? 

    Hey,
    Sure, no problem.  Here's a link a a demo of it: http://www.damon9.com/dev/publish/web/EndofDays.html
    Not sure how much you can see from just that, but inside the Edge comp there's nothing crazy going on.  4 layers, 2 rotating 6 degrees a second, stops at 60 seconds (when it should start back from the beginning).  I've tried the usual Timeline Action sym.play(0); on complete and also just adding a trigger at 60 seconds of sym.play(0);
    Just can't imagine what else it could be.
    Thanks
    Damon

  • Looped Animation slows down in Browser

    I have a looping animation.. basically its a rocketship with clouds passing by making it look like its flying.
    The 2 clouds and the rocket flame are set to loop/repeat.. but over the coarse of a couple minutes, the animation slows wayyy down and evetualy renders the actual browser page useless / super slow.
    It appears the animation is killing the memory.. How do you reset this? Is there a code that allows the animation to repeat w/o taking away from the rest of the page's cache/ memory?

    Hi,
    Uninstall HP Quick Launch Buttons from your system.
    Resource:
    Uninstalling Software in Windows 7
    Uninstall or change a program in Windows 7
    Download and install:
    HP Quick Launch Buttons here (ver 6.50.13.1 for 32/64 bit Win7)
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

  • Endlessly Looping Animation

    I'd like to create an endlessly looping movie that loads 3
    images, then fades out each one using a tween to reveal the image
    just beneath it. As soon as the third image fades, I'd like for the
    animation to start over and just keep repeating. I'm trying to use
    a timer to do this but need some serious help. I would imagine that
    a "for" loop would be used to repeat the animation but I can't
    determine how to make loop more than a select number of times.
    Below is the code I have. Can somebody lend a hand?
    Thanks so much.

    Thanks Ned! That's genius, and I never would have thought to
    do it that way. Thanks.
    The only glitch is the animation gets a little weird after
    the first time through. The images start to just appear very
    briefly. They continue looping just fine, but they are not staying
    on screen for the entire 5 seconds. Do you have any idea what's
    happening?
    Here's my test URL:
    http://www.savagepixels.com/photoAnimation.html
    and the code:
    var image1_mc:mcImage1 = new mcImage1();
    var image2_mc:mcImage2 = new mcImage2();
    var image3_mc:mcImage3 = new mcImage3();
    addChild(image1_mc);
    addChild(image3_mc);
    addChild(image2_mc);
    addChild(image1_mc);
    var imgCount:uint = 1;
    var myTimer:Timer = new Timer(5000, 0);
    myTimer.addEventListener(TimerEvent.TIMER, fadeImage);
    myTimer.start();
    function fadeImage (e:TimerEvent):void
    new Tween(this["image"+String(imgCount)+"_mc"], "alpha",
    Strong.easeOut, 1, 0, 3, true);
    imgCount +=1;
    if(imgCount == 4)
    imgCount = 1;
    }

  • Real Instruments play beyond end of repeated loop

    I've tried every google-fu trick I could think of to see if anyone else has had this problem.
    I record a real instrument (say an electric guitar riff). I drag/repeat/loop it 3 or 4 times. It plays properly.
    Then at some point I select it, and move it left or right.
    The part starts at the right time, but will repeat an extra time beyond the visible onscreen loop. Once this glitch occurs, neither resaving, shrinking/re-repeating, moving it around and then back to where I want it make the track end when it's supposed to.
    The only way I've found around it, is to end the repeat early and let the erroneous repeat play out, or just end the repeat entirely, and use cut'n'paste instead.
    This happens to me *all the time*... anyone else seen this or have a resolution?

    Thanks for the suggestions. I can't remember deleting any tracks... however, how would i check for "hidden" tracks?
    The funny thing is i can hear the effect returns for the real instrument tracks...tracks that are heavily reverbed i can hear a faint echo of the track. and like i mentioned the drum loop and software piano still play fine.
    And, I also see monitor activity in the real instrument tracks when i play the song. Everything looks normal, but of course, the sound isn't there.
    Thanks again for your help!
    Message was edited by: Ike the Longshoreman
    P.S. I just tried Unsolo all tracks and Unmute all tracks... still the same problem.

  • Repeat Loop times out and I don't want it to

    Maybe there is a better way to do this but I want an action to take place whenever the modification date of a certain file changes. This is what I use but it errors because of a timeout after about 10 mins if the mod date doesn't change. I need this to be checking all the time.
    on idle
    tell application "Finder"
    set UpdatedOLD to modification date of file aFile
    set UpdatedNEW to modification date of file aFile
    end tell
    repeat while UpdatedOLD = UpdatedNEW
    tell application "Finder"
    set UpdatedNEW to modification date of file aFile
    end tell
    end repeat
    end idle
    How can I get this to work?

    Hello
    I think you have stepped on a land mine set by OSX 10.6.
    There's a fatal bug in Apple Event Manager in 10.6 such that one event in every 65535 events will be lost and never be replied, which will result in Apple Event timeout error on sender. This bug has been reported shortly after the 10.6 release and has not yet been fixed as of 10.6.2.
    In your current script, you're continuously sending event to Finder and sooner on later send an event with the specific event id that is doomed to be lost. Judging from the time till you see the time out error, that is 10 min, you're at most sending 65535 / 600 = 109.225 events / sec to Finder. You can reduce the number of events by inserting some delay, e.g. 'delay 1' in your repeat loop but it can only defer the failure.
    cf.
    Re: Timed Out (Silence)
    http://lists.apple.com/archives/applescript-users/2009/Oct/msg00117.html
    Re: spurious timeout on nth Apple event on Snow Leopard
    http://lists.apple.com/archives/applescript-users/2009/Nov/msg00041.html
    A better way to achieve your task would be to let a launchd agent watch the file.
    A recipe is as follows.
    1) Save a compiled script in :
    ~/Library/Scripts/launchd/watchdog.1.scpt
    with contents :
    --SCRIPT
    -- Here put your script that is to be triggered when the file is modified.
    -- e.g.
    tell application "System Events"
    display dialog "The file is modified." giving up after 10
    end tell
    --END OF SCRIPT
    2) Save a UTF-8 plain text file in :
    ~/Library/LaunchAgents/watchdog.1.plist
    with contents :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>watchdog.1</string>
    <key>Disabled</key>
    <false/>
    <key>Program</key>
    <string>/usr/bin/osascript</string>
    <key>ProgramArguments</key>
    <array>
    <string>osascript</string>
    <string>/Users/USER_NAME/Library/Scripts/launchd/watchdog.1.scpt</string>
    </array>
    <key>WatchPaths</key>
    <array>
    <string>POSIX_PATH_TO_THE_FIILE</string>
    </array>
    </dict>
    </plist>
    *Change USER_NAME to your user name and POSIX_PATH_TO_THE_FIILE to the POSIX path to the file to be watched.
    3) Issue the following command in Terminal to load the launchd agent :
    launchctl load ~/Library/LaunchAgents/watchdog.1.plist
    Or
    3a) Log-out and re-log-in to load the launchd agent.
    *The name 'watchdog.1.plist' and 'watchdog.1.scpt' and the script's location '~/Library/Scripts/launchd/' are mere examples. You may change them as you see fit.
    cf.
    http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/m an5/launchd.plist.5.html
    http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/m an1/launchctl.1.html
    Good luck,
    H
    Message was edited by: Hiroto (fixed typo)

  • Repeat loops

    Within a repeat loop, I get creation dates of sequential files. I can get the creation date of the first file but then when it repeats it wont get the creation date of the next file. When i run it again i can get the creation date of the first two, but not the third. The next time i run it i can get the creation date of the first three but not the fourth, and so on.
    Does anyone know why this is happening and what can i do to get the creation dates the first time?
    Thank you

    Hello John,
    The part where I am having a problem is here.
    I perform some script that allows me to find these files and which files i need to use and then there is this..
    count folder folderList
    set folderCount to result
    set x to 0
    repeat until x = folderCount
    set x to x + 1
    set filePath to folderList & ":" & x & ".jpg"
    get creation date of file filePath
    set creationDate to result
    get date string of creationDate
    set dateString to result
    get time string of creationDate
    set timeString to result
    theres a lot more between this and the end of the repeat.
    It won't allow me to get the creation date out of the file filePath. so there for I cannot perform the rest of this. I thought it was a problem with the computer because what I have should run. It does not run the first time, it says that the creation date is missing value in the event log. Then I run it again and it gets the first files date, but not the second. then the next time it gets the first two and not the third and so on..
    thanks for all the help,
    David

  • Nested Repeat Loops in Applescript

    The following code has two lists: myURLs and myIMGs. I want to loop through the sites listed in myURLs, take a screenshot, then save them in my Shared folder as the file name listed in myIMGs. So, google.com's image will be saved as "google.jpg", and so forth. The list in myIMGs corresponds to the list in myURLs.
    This is what I have, but it doesn't quite work. It loads the first URL from myURLs, takes a screenshot of it, but then loops through each file name in myIMGs and saves that one screenshot with all those various file names. Then, it loads the next URL in myURLs and does the same thing. How do I set the file names in the myIMGs list to correspond to the URLs being loaded from myURLs? I'm having trouble with the nested loops.
    set myURLs to {"https://google.com", "https://wikipedia.org", "https://bing.com", "https://apple.com"}
    set myIMGs to {"google.jpg", "wikipedia.jpg", "bing.jpg", "apple.jpg"}
    -- Sets settings of Safari without interferring with user's settings.
    repeat with myURL in myURLs
              tell application "Safari"
                        set myDoc to front document
                        set windowID to id of window 1
                        do JavaScript ("window.open('" & myURL & "','_blank','titlebar=0');") in document 1
      close window id windowID
                        set the bounds of the front window to {0, 20, 915, 812}
      delay 5
              end tell
    -- Screengrab, crop and save to Shared folder
              repeat with myIMG in myIMGs
                        do shell script "screencapture -o -l$(osascript -e 'tell app \"Safari\" to id of window 1') /Users/Shared/" & myIMG
                        set this_file to "Macintosh HD:Users:Shared:" & myIMG
                        try
                                  tell application "Image Events"
      -- start the Image Events application
      launch
      -- open the image file
                                            set this_image to open this_file
      -- get dimensions of the image
                                            copy dimensions of this_image to {W, H}
      -- Crops off the Safari header
      crop this_image to dimensions {W, H - 50}
      -- save the changes
                                            save this_image with icon
      -- purge the open image data
      close this_image
                                  end tell
                        end try
              end repeat
    end repeat

    Switch to an indexed loop and you don't need the extra repeat loop; you can run the two lists in parallel. See my changes in red:
    set myURLs to {"https://google.com", "https://wikipedia.org", "https://bing.com", "https://apple.com"}
    set myIMGs to {"google.jpg", "wikipedia.jpg", "bing.jpg", "apple.jpg"}
    -- Sets settings of Safari without interferring with user's settings.
    repeat with i from 1 to (count of myURLs)
              tell application "Safari"
                        set myDoc to front document
                        set windowID to id of window 1
                        do JavaScript ("window.open('" & item i of myURLs & "','_blank','titlebar=0');") in document 1
                                  close window id windowID
                        set the bounds of the front window to {0, 20, 915, 812}
                                  delay 5
              end tell
      -- Screengrab, crop and save to Shared folder
              do shell script "screencapture -o -l$(osascript -e 'tell app \"Safari\" to id of window 1') /Users/Shared/" & (item i of myIMGs)
              set this_file to "Macintosh HD:Users:Shared:" & myIMG
              try
                        tell application "Image Events"
      -- start the Image Events application
                                  launch
      -- open the image file
                                  set this_image to open this_file
      -- get dimensions of the image
                                  copy dimensions of this_image to {W, H}
      -- Crops off the Safari header
                                  crop this_image to dimensions {W, H - 50}
      -- save the changes
                                  save this_image with icon
      -- purge the open image data
                                  close this_image
                        end tell
              end try
    end repeat

  • Repeat loop in filemaker Pro 7 database

    How can I get my script to loop through a large FM database of records and change the data in a particular field as in the script below? I cannot figure out the syntax for the repeat loop...
    with timeout of "3000" seconds
    tell application "FileMaker Pro"
    go to database "CPA FM Log Copy"
    show every record of database "CPA FM Log Copy"
    set theCount to number of record of database "CPA FM Log Copy" as integer
    repeat with i from record theCount of database "CPA FM Log Copy"
    if field "ph" of record i of database "CPA FM Log Copy" is "NG" then
    set data field "ph" of current record of database "CPA FM Log Copy" to "Nice Going"
    else if field "ph" of record i of database "CPA FM Log Copy" is "EC" then
    set data field "ph" of current record of database "CPA FM Log Copy" to "Everything Cool"
    end if
    end repeat
    end tell
    end timeout

    Depending on the number of records in the database, this isn't the most efficient way of doing this.
    You should use a 'whose' clause in your script to narrow the FileMaker results to the subset of records you want to change, then change them all at once. This is far more efficient than looping through thousands of records in AppleScript looking for the ones you want.
    This should get you on the right track:
    <pre class=command>tell application "Filemaker Pro"
    go to database "CPA FM Log Copy"
    set theResults to every record of database "CPA FM Log Copy" whose field "ph" is "NG"
    set data field "ph" of every item of theResults to "Nice Going"
    set theResults to every record of database "CPA FM Log Copy" whose field "ph" is "EC"
    set data field "ph" of every item of theResults to "Everything Cool"
    end tell</pre>
    In this way you let Filemaker do the searching (which is what it's optimized for), and your script does the least work necessary.
    BTW, just so you know why your original script fails, it's because you say:
    <pre class=command>set data field "ph" of current record of database "CPA FM Log Copy" to "Nice Going"</pre>
    Note that you're always setting the 'current record'. This means that even if there are 1000 records in the database, you only ever set the first field. If you wanted to maintain the repeat approach this would have to change to something like:
    <pre class=command>set data field "ph" of record i of database "CPA FM Log Copy" to "Nice Going"</pre>
    so now it uses the loop iterator to track which record to change. An even better model that does use a scalar index is to do something like:
    <pre class=command>repeat with curRecord in every record of database "CPA FM Log Copy"
    if field "ph" of curRecord is "NG" then
    set data field "ph" of curRecord to "Nice Going"
    end if
    end repeat</pre>
    This nice thing about this model is that it uses FileMaker's internal references for records so that you know you're changing the right thing. This can be crucial if working in a multi-user database where there might be someone else is editing the data in parallel, changing theCount.

  • Repeat loops and goto's

    Can I ask two questions please,
    Q1.
    is there a way of telling a repeat loop to 'step' over
    numbers, I cannot find anything in the help files that mention this
    at all....
    For example, repeat with i := 1 to 200 'step 2' This would
    result in values of 1, 3, 5, 7, etc etc
    For example, repeat with i := 1 to 200 'step 3' This would
    result in values of 1, 4, 7, 10, etc etc
    Q2.
    Goto commands in a calculation icon.
    I can only find a reference that will use the
    goto(IconID@"TARGETICON") Is there anyway I can use the goto
    command inside a calculation. I need to set up a logical test,
    basically to say that if this isn't true go back to here and do it
    again(a repeat loop won't work)
    One day I think I may just get the hang of
    this.........

    I didn't examine your code closely, but for the future, if
    you need to
    randomly pull values from a list and you don't want
    duplicates...
    Copy the list to a new list, then after you pull a value from
    the list
    within the loop, immediately use DeleteAtIndex to remove that
    value from
    the temporary list. So during the next iteration of the loop,
    the
    previously pulled value is not present to be pulled again.
    Erik
    The Pc Doctor wrote:
    > Many thanks for your suggestions, I think I just got
    caught up the my knowledge
    > of VB and the for next loop, the solution was so obvious
    now you mention it.
    >
    > The second one I've also solved by way of different
    Calculation icons. Here
    > is what I was doing (Please forgive the awful code, I am
    still new at this)
    >
    > The whole point of this is to select a chosen number of
    Questions from a list
    > of a certain amount of questions - the numbers are not
    known and is subject to
    > change.
    >
    > I would seed a random numbers (between 1 and QNo) into a
    list of up to Q0
    > numbers and then use the below code to check to any
    duplicate numbers. The
    > problem I had was finding a way of if I found duplicate
    numbers replacing them
    > and testing them again, and again until no duplicates
    exist.
    >
    > I put the below in it's own calculation icon called
    'CheckIt'
    > - - - - - -
    > SortByValue(QuestionStore, TRUE)
    > again := 0
    > repeat with i := 1 to Q0 - 1
    > if QuestionStore = QuestionStore then
    > QuestionStore := Random(1,QNo,1)
    > again := 1
    > end if
    > end repeat
    > - - - - - - - -
    > I then put the following in a following calculation Icon
    > - - - - - - - -
    > -- Test to see if we have duplicate numbers, if yes then
    go back to the check
    > random numbers Icon.
    > if again = 1 then
    > GoTo(IconID@"CheckIt")
    > end if
    > - - - - - - - - - -
    >
    > Well it works
    >
    > Thanks again
    >
    > Paul
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.macromedia.com/support/forums/team_macromedia/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/groups?q=macromedia.authorware

  • Slideshow Transitions When Repeating Loop

    Hello,
    I've created a slideshow using many photos that I want to repeat/loop indefinitely. I've fixed the transition at the end so it doesn't fade to black, however, when the last slide ends, it doesn't transition to the first slide as I wanted.
    All of the transitions are dissolves except for the cut transition from the last slide to the first slide. Any ideas how on how to make every transition a dissolve....even when repeating?
    Thanks so much....

    Anyone?

  • Creating reflection for core animation layers?

    Is there any example in the wild for creating reflections on core animation layers, like Coverflow's for example?
    I have a bunch of layers I need to display at different distances from the "surface" and without reflection they just seem skewed instead of floating in 3D..

    The buttons are still there, but they don't do what they were made to do. (show layer / hide layer)
    What I'm doing is a map, with icons for the hydrants. When you click on the icon of the hydrant, a photo of the hydrant and it's pipes show up on the top right of the map. This is the layer that turns on and off when clicked on the button.
    Is there something I can do to keep the layers working?
    Thank you for the quick respons. I appreciate it!

  • Looping animations indefinitely

    I'm just starting with Captivate, so I apologize for such a
    basic quesiton....
    I'm trying to create a slide which has a continue button (no
    problem there) and a looping animation (swf that i have imported)
    that continues to play in the background until I stop it.
    Unfortunately the timing seems to be linked to active button
    properties. I would like the animation to be completely independent
    of any other properties on the slide. Is that possible?
    Thanks in advance for the help.

    Hi -- I'm not familiar with the AE abbreviation.... Adobe?? I
    think my idea was that the movieclip would have to be
    self-contained. Any animation, as well as any interactivity to
    control that animation, would have to be within the movie clip. You
    could then load it up onto a captivate slide and its actions would
    be independent of the slide. If you don't have access to Flash,
    however, and aren't able to build a self-contained clip, I'm not
    sure how you'd handle this.
    The other option I was describing was to have two slides...
    one with the animation on it, the other with a freeze frame of that
    animation. Clicking your stop button (captivate button) would
    simply advance you to the 'freeze' slide. A 'start' button would
    take you back. It's a poor workaround, at best, but it may work.

  • Interrupt repeat loops with buttons

    Hi,
    How do I make buttons available to the user while I run a repeat loop?
    I'm doing a shell script in the background and I'm using a repeat loop to read out the log of the results. Meanwhile, I want to have a Cancel button available to the user.
    The button however doesn't respond while the repeat loop runs, while the rest of my UI is in fact updating (based on the incoming log). I'm even using a one second delay at the beginning of the loop.
    I'm using AppleScript Studio in Xcode/Interface Builder.
    Thanks,
    JW

    1. Create a control in the window which has some sort of boolean property (if you are using a progress bar, then you already have one, since a progress bar can be indeterminate, and you can check this).
    2. Set the handler which shows the window (or alters the window when the process begins) to set this boolean property to a particular value
    3. Have the "Cancel" button handler invert the property
    4. Have the repeat loop check the property as part of its boolean condition (as in "repeat while x is true")
    Note that if the window is going to go away anyway when the process is complete, then you can use the window's title to indicate the status: set the title to "Cancelling..." and have the repeat loop check whether the title of the window is "Cancelling...".
    You could also just create a global within the script file, and have the repeat loop check the status of the global, but that tends to lead, sooner or later, to overlapping reuse of a single global value, which is a bug.

  • Trying to make a looped animation outside of comp space: expression or keyframe?

    Not quite sure on how to title it but thats the jist if it:)
    Hello and thank you for your time,
    Basically, I want to take a tiny small shape object within a comp size of 2048 x 1024, and have it animated so that this small shape object starts at the very top edge of the comp (where comp meets the grey dark-matter space), and move it straight down to the bottom edge of the comp, and then have to repeat again starting at the top again, so that this small shape object is constantly starting at the top, and moving down to the bottom.
    From there I can adjust speed and even angle of travel so that I can rotate the trajectory and have it move at an angle for example.
    Is there a expression that can repeat this tragectory over and over again without me always keyframing it??
    D

    You can set 2 position keyframes then add this expression to the Position property.
    loopOut("cycle")
    that will get you to the looping movement stage of your project. Now Pre-compose the layer and add time remapping to adjust the speed.
    I'll have to think of a way to automate the rest. It will involve some advanced expressioneering.

Maybe you are looking for

  • Print drop-down text

    I am using RoboHelp 11 and would like to print pages using the Advanced Options - Include drop-down text option. I have discovered that this option does NOT work when the drop-down text is in a snippet. Are there any known work-arounds for this "feat

  • Vendor return Process - Capture of delivery costs

    My client has a scenario of vendor return with PO, where we indicate that the PO item is a return item. We use VL120B to create the DO and then do a PGI. You can do the Vendor return with transaction MBRL as well. The accounting postings in this case

  • Chinese Translation from an OCR document

    After doing OCR to a Chinese pdf, I am having trouble cutting and pasting into a translator for translation into English. I have done this before but can't seem to make this work now. Any guidance?

  • Displaying a figure in Words

    hi gentlemen....I wanna display figures in reports alongwith there value in words e.g $100 will be displayed as One Hundred Dollars Only....plzzz tell me that how can I accomplish this job in reports6i???thanx

  • OWB10gR2 : One Repository and Multiple Enviroments(Dev , QA and Prod)

    Hi All, In 10gR1 , Runtime repository and Design repository used to be 2 different schemas. Because of this , we can simply have one repository in development and deploy the mappings into QA and Prod. In R2 , runtime and design objects are present in