3D product rotation images sequence little problem

Hi!
I made a sequence of images and make the code the rotate around it but I have a little problem with the loop ( from frame 100 to 1 || 1 to 100 ).
You can take a look to the link here : http://sebastienouellette.com/productview/test.html
How can I avoid the little stick problem. I know what's the problem but I dont know how to solve it. It's with the frame tweening. Anyway, here's the code :
import flash.events.Event;
import com.greensock.*;
import com.greensock.easing.*;
import flash.events.MouseEvent;
var direct:String = "forward";
var objTotFrames:int = 490;
var ease:int = 5;
var targX:int = mouseX;
var drag:Boolean = false;
var ptX:int = 1;
var frame:int = 1;
var mousePos:int;
stage.addEventListener(Event.ENTER_FRAME, dragHandler, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_DOWN, downHandler, false, 0, true)
stage.addEventListener(MouseEvent.MOUSE_UP, upHandler, false, 0, true)
function dragHandler(e:Event):void
mousePos = -mouseX * 100 / objTotFrames;
if ( frame < 1 ) {
loopForward();
}else
if ( frame > 101 ) {
loopBackward();
}else
  if (drag)
        initAnim();
function initAnim():void {
targX = mousePos+ptX;
frame += (targX-frame);
TweenMax.to(mc, .3, {frame:frame});
//mc.gotoAndStop(frame);
function loopForward():void {
//TweenMax.killTweensOf(mc);
frame = 101;
ptX = frame - mousePos;
mc.gotoAndStop(101);
trace("off 1");
function loopBackward():void {
//TweenMax.killTweensOf(mc);
frame = 1;
ptX = frame - mousePos;
mc.gotoAndStop(1);
trace("over 1");
trace(frame);
function upHandler(event:MouseEvent):void
    drag = false;
function downHandler(e:MouseEvent):void
      ptX = frame - mousePos;
      drag = true;
Thanks for your help!

It doesnt work but I think think this is the problem because if you take a look to this example :
http://sebastienouellette.com/productview/test2.html
It works pretty well without the "easing" effect and the only think I change in the code is that I removed the line : TweenMax.to(mc, .3, {frame:frame}); and change it to a basic mc.gotoAndStop(frame);

Similar Messages

  • Adding audio to image sequence

    Hello
    I've got a 5 minute animation where various sections need updating so the most obvious thing to do is render out an image sequence and just replace the pieces that are updated. The audio dosen't change and fits the length of my animation perfectly.
    I'd like to use AME CS6 for exporting to various formats as the presets are quite useful. I can load the image sequence no problem but I'd like to add the audio file to it. Can it be done? I can't find an obvious something-to-click button and I'm getting bored of copying and pasting in QTPro!
    Is it a feature request?

    Nick,
    Thank you for your reply.
    I would not have asked such a silly question I went to bed earlier.
    Thanks for your patience.
    The volume is at its maximum level.
    I am sure I am selecting the correct option in Sound in System Preferences.
    When I scratch the microphone I can see the blue markers move.
    The sound over in FCP works correctly and I allow it to proceed to its finish before I turn off the microphone.
    Using Quick Time as you suggested clearly works but again the voice over can barely be heard.
    I have selected an audio track,number 3 or lower and set in and out points in the video track.
    So I think I have followed the correct settings and indeed the volume of the voice was at a useful level the first time I used it.
    The problem is that since then my recording is barely audible,
    Michael.

  • 3D Rotation Slider for image sequence

    I created a 3d model rotated it 360 degrees and exported it an image sequence. I would like to be able import the sequence in flash and rotate the image sequence 360 degrees by creating and dragging a slider.

    What part of what you want to do are you having a problem with?
    If you create a new movieclip symbol and try to import one of the images onto the stage while inside of it, then if the images are named as a sequence Flash should be able to detect this and ask if you want to import the whole sequence.  If you select yes then it will place the sequence along the timeline of your movieclip.
    For the the Slider, just bring one in from the components library and set it up such that its range and increments match the frames occupied by the images.

  • Export problems multiple movieclips to image sequence

    For our customer we made several flash animations. My output has to be image sequences for Cinemascope format. The export function in Flash for image sequences does not work! All my images are the same frame. This is frame 0 on the timeline. So the embedded movieclips wont playback.
    When exporting a Quicktime movie, some frames are skipped and missing in the output! So the export options in Flash are totally not working for my situation. We bought an application SWF to image but also here are some frames missing in the export. I can not relay on Flash and this application.
    The project is built like this: we made several movieclips and scaled them and put them in position. Then we made one new movieclip with all the earlier made movieclips inside. Then scaled the entire movieclip to the Cinemascope stage size.
    Are we using Flash in a wrong way here?
    Why does the exports functions don't work on my project? (built in movieclips won't play, quicktime mov skips images)
    How can i solve this problem?
    Thanks in advance,
    Greetings Henk

    Ok this is workaround but should in principle do what you want:
    //create an instance of library object
    var mylibrary = fl.getDocumentDOM().library;
    var doc = fl.getDocumentDOM();
    var tl = fl.getDocumentDOM().getTimeline();
    //get items in library in an Array
    itemArray = mylibrary.items;
    totalCount = itemArray.length;
    for(var i=0;i<totalCount;i++){
        myItem = itemArray[i];
        myItemType = myItem.itemType;
        myItemName = myItem.name;
        mylibrary.editItem(myItemName);
        fcNum = tl.layers[0].frameCount;
        for (f=0; f<fcNum;f++){
                tl.setSelectedFrames(f, f)
                framenum = f + 1;
                //select your destination, on MAC use something like file:///Macintosh HD/Users/username/Desktop/
                doc.exportPNG("file:///C|/test/"+myItemName+ "_" + framenum +".png", true, true);
    1: open the fla file you want to convert to a movie and create a backup
    2: Create a new Flash Javascript file and insert the code above, Make sure you have enough hard disk space in your destination folder
    3: Press the play button and Flash will automatically parse through all items frame by frame in your library and save the images as png
    4: Take a break as it might take a long time

  • Problem exporting image sequence

    Hello,
    Somehow the rendering of my fileout node fales.
    I want to export my composition as an image sequence (tiff). When I render the fileout node, the flipbook is working, but the exported images contain only the foreground image of my composition and the background image is missing.
    What do I do wrong?
    I just connected a foreground image sequence to a background image, using the over node. Then I attached the fileout to the over node.
    Maybe it has something to do with the imagename of the fileout?
    Thanks for any advice,
    Wypke

    sorry,
    discovered that preview (the application in which I opened my shake-output) doesn't recognize shake exported files...
    problem solved.

  • Import image sequence problem

    Hi. I have Compressor 5.3.5.
    I'm importing a TIF image sequence (1080p 25fps) to get an Apple Pro Res 422 HQ (using presets). I set the fps to 25 and start the conversion. Then I find the resulting Quicktime clip (Apple Pro Res 422 HQ) plays fast (like fast-forward). Also the clip has the expected time duration (length) but the last frame stays freezed till the clip ends, because the video is in fast-forward and freezes the last to fit the time duration. I tried the same with other presets (iPod h264, no presets at all, etc), but all give the same problem.
    Also I tried to get the video file from the TIF sequence using Final Cut Pro and everything looks fine except the color/contrast... that's why I need to use Compressor and not Final Cut.
    Can you help me please? I have googled this issue but found no related topics.
    Thanks.

    In fact, Compressor create an XML file in ~/Library/Application\ Support/Compressor/Scratch/
    In this XML, you've got sound, framerate and field dominance information if you set it in the inspector panel :
    <key>audioLocation</key>
              <string>path://to/audio/file.aif</string>
    <key>fieldOrder</key>
              <integer>2</integer>
    <key>frameRate</key>
              <real>25</real>
    But nothing if you don't set it. So Compressor believe that your image sequence is at 29.97 even if it's a 25 fps sequence...

  • Problem with QT PRO image sequence export

    I have quicktime pro. When I export a .avi file into a .bmp sequence, it will name the files like this: whatever0001.bmp, whatever0002.bmp, and so on until whatever8000.bmp, depending on how long the video is. The problem with this is, I need to use the image sequence combined with a WAV file in order to get a certain file format (please, don't ask me what it is). However, the encoder needs to files to be: whatever1.bmp, whatever2.bmp, whatever3.bmp, etc.
    How can I get quicktime pro to export the image sequence .bmp pictures like that? And if it's not possible, can you please point me to some freeware that can (OS X prefered, but I can use windows ones).
    Thanks.

    http://www.publicspace.net/ABetterFinderRename/
    One of dozens of Mac apps that help rename file names.
    Why are you using the .bmp format?
    http://www.iceteks.com/articles.php/imageformats/1

  • Problem with rotating images in Photoshop CC

    When I rotate images in Photoshop CC I get jagged edges and not smooth as before. What has changed? How can I sort this out? Is my software corrupted?  Still works perfectly in CS3.

    If your using Free Transform, then look at the Interpolation settings in the tool options bar
    Try one of the Bicubic settings
    (i have it set to Bicubic)
    For rotating the Canvas look at the Image Interpolation settings under Photoshop (Edit)>Preferences>General and use one of the Bicubic settings
    The standard Bicubic setting is a good all around setting

  • Weird Problem when importing Raw .CR2 Image sequences.

    I am trying to import some CR2's image sequences into my AE CS5.5.
    System specs:
    OSX 10.7.4
    Mid 2010 Mac Pro
    2 x 2.66ghz 6-Core Intel Xeon
    ATI Radeon HD 5770 1024MB
    6gb Ram.
    The images are 5616x3744. I also brought in a couple image sequences at 2784x1856, these were brought in fine. But the bigger (let's call them 5k files, even though they aren't technically 5k) images are almost being auto scaled down. See screenshot below.
    This is what they look like when previewing from source clip, its as if they have been scaled down by 1/4. The info on the clip still reports that they are the full 5k resolution. Why could this be happening?

    Could be an embedded preview JPEG/ TIFF instead of the actual RAW data. Verify the files in Photoshop or another program and suppress the preview image on import.
    Mylenium

  • Image Sequence Problem

    I just upgraded to QT Pro so that I could do some image sequence stuff.
    I load a sequence, set the frame rate and get a white screen following a microsecond blip on the screen. I have tried with one, two, three etc images and the result is the same each time.
    The images I am trying to load are all jpeg straight from camera. File sizes are no greater than 11 megs.
    I have 4 gig of memory on a 2.8 iMac.
    Anybody have any clues?

    I found that reducing the size of the images to 6 inches wide in Photoshop CS3 allowed image sequencing to work. The ogiginal images were 65 inches wide. I left the resolution at 72 dpi. That gave a file size of about 363 kb instead of 11 megs. Now I need to go back and play with higher resolution to determine what the threshold is, where it stops working again.

  • Images sequence with png problem

    I created an image sequence with png files for transparency reasons. When I activate the interactivity, the original placed image shows behind the image sequence as i interact with it. Anyway to get this to go away other than hiding the intial image?

    nope. Transparency isn't well supported in image sequences.
    —Johannes

  • Batch combine multiple image sequences

    My problem in a way is pretty simple.
    After assembling the render output of my 3d app in photoshop (32bit) and changing the appearance via several CC layers in different layer modes (e.g. Hue/saturation in Overlay mode) I ended up with my composing for print purposes. The comp is complex, with several masked folders, single masked CC layers and many image layers (some with masks).
    Now the client wanted me to animate part of the image. No problem I thought. But the trap is of how to assemble the different image sequences (diffuse, specular, reflection, masks, etc, etc). I came up with a PS action which loaded the single images and arranged them in the same fashion as the master file.
    But now PS doesn't load the incremental images for the batch processing.
    Images are named in a Diffuse_00001, Specular_00001, ... fashion. Loading the first set works, but from Diffuse_00002 everything goes wrong and PS load the 00001 files (except from one file which loads in the proper incremental way).
    I can't transfer this stuff to AE as it is much too complex and I do no AE only very little.
    I guess PS should be capable to solve this batch task, but a simple action via batch seems to fail.
    Anybody who knows a solution?
    Cheers
    Thomas

    I forgot to mention that after applying the action the comp is reduced to the background layer and needs to be saved as Flattened_00000, Flattened_00001, etc.
    Cheers
    Thomas

  • Cs3- Help with Image sequence *ghosting* ?

    Hi guys- newbie here that needs a little help. 
    Check out the attached screenshot of a paused .mov I put together.  What type of things/settings can cause this?  How do I make an exported image sequence play as a smooth succession of sharp and CLEAR images?
    Thanks for your insights/time!
    Mike

    Here is an illustration of what might be happening. This is shown as it would appear on separate Video Tracks, in A-B Roll editing, as an example.
    If the Duration of a set of Clips is shorter than the Duration of a Transition, then PrPro will have to "create" frames to allow for the Handles of the Transition(s).
    If your Transitions are a full one sec. and your FPS = 24, the Transitions will take up 12 Frames per Clip. As each Clip has half of two Transitions, the Clip needs to be slightly longer than the 2 halves of the Transitions. Since you cannot edit to less than a single Frame, the Clips need to be at least 24 Frames and I'd look at 25 Frames long, or PrPro will create extra Frames from the first and the last Frames in the Clip - in your case the still frames that are repeated.
    Hope that this helps and also cures your problem,
    Hunt

  • Offline/Missing Image Sequences in After Effects CS6 with Color Bars

    I am working on a stop motion animation in After Effects CS6.  Each clip has been imported as an image sequence from stills on my hard drive.  When I open up After Effects, all image sequences now have color bars over them, as if they are offline.  Trying to reload them does nothing.  I cannot 'link media' because it isn't just one file; it's an image sequence so there are many of them. 
    I first noticed this when the color bars appeared in my dynamically linked comps inside of Premiere Pro.  Everything played smoothly the first time I opened the project in Premiere CS6, after originating in CS5.5.  Then the second time I opened up Premiere, the color bars appeared on the linked comps.  I hadn't yet opened up my AE project in CS6 yet, so when I did, AE converted the project and I resaved it. 
    Any help related to this issue would be greatly appreciated. 
    Mid-2009 Macbook Pro
    Mac OS X Mountain Lion
    8GB RAM
    Adobe Creative Suite Production Premium CS6 w/Creative Cloud

    Thanks everyone, I think I'm beginning to solve this.
    Rick, thanks for your advice.  I tried this and it worked.  The reason I didn't do this before is that, because it is stop motion, I couldn't remember how many frames I had imported for each sequence.  For instance, if I shot 54 images and only imported 52 into the sequence, I wouldn't remember which 52 images to import...this might still be causing a problem, but I don't know yet.  I think in most cases I imported all the images in a folder, so the image sequences should be fine.
    I am having another problem, however.  Even though the issue seems to be fixed in AE, it doesn't seem to be fixed in Premiere...each image sequence is dynamically linked from AE, but each dynamically linked comp is still being show with color bars as they did in AE...I think that maybe my Premiere project is still linking to the old CS5.5 AE project, and not the new one opened and saved in CS6...

  • QT 7.6.6 image sequence issue

    macbook pro running osx 10.9.4
    shot about 800 photos (1 every 5 seconds) on my gopro.
    everytime i open quicktime pro 7.6.6 and open the image sequence, it only grabs one frame. they are numbered sequentially.
    i had shot 1600 photos of the sunset a few weeks ago, and it worked perfectly. selected the first image, and it loaded the rest with no issues.
    now it wont do it. ive tried everything and its starting to get on my nerves.
    anyone else have this issue, and if so - how do i fix it?
    thanks,
    dave

    A bit more info: I looked at the network traffic with Activity Monitor. My Mac is receiving a bit-rate well above what is needed for any particular stream at the start of the stream and continues that way until around 25 seconds into the video. At that point the incoming data rate drops to around the expected level. The glitch (in Firefox 3 Mac) appears about 12 seconds into each clip.
    The client Mac incoming network traffic is about the same when I play the same clip with Firefox 3 (with the glitch) and Safari(where there is no problem). The glitch occurs on every clip regardless of the bit rate, even as low as 132kbps. I'm on a 20Mbps Internet connection. The server network is fast enough to stream 1 and 2Mbps clips with little or no problems to my Windows machine or the Mac with Safari or FF2.
    We are opening a QuickTime player in a smaller browser window. For some reason we are initially getting two control bars at the bottom in Firefox 3 (not in FF2 or Safari). The bottom control comes up first and has the initial "buffering" message, a speaker icon and FF/RW controls. Above that is another control bar with a speaker, play/pause, the timeline and the FF/RW controls. Interesting that this cosmetic glitch appears in the QT browser window only in FF3, the same browser with the playback glitch.
    Thanks,

Maybe you are looking for