Help with rotation

Hi, I am creating a basic 2d shoot 'em up in director. I want
to have the gun rotate (in order to follow the crosshair). Can
anyone help me? To give you a better idea heres a screen shot!
Thanks,
Staff, Northern Ireland
[url=http://img441.imageshack.us/my.php?image=ss7bq.png][img=http://img441.imageshack.us/i mg441/4022/ss7bq.th.png][/url]

I wouldn't expect AI to keep track of the rotation of a few points on a path -- that I can understand. But something like a block of text with 3 decks, or a photo, or a group, etc. That should be very easy to keep track of. I'd like to be able to create a new element and let it join a group of rotated objects with the same degree of rotation. It seems very odd to me that a vector program can't do that. Corel DRAW did all of this for me and it also gave me the option to "clear transformations" which is handy when things get out of hand and you want to revert to what you started with.
But thanks for your response. At least now I know I have to take notes on how I rotate things and avoid the free rotation tool.

Similar Messages

  • Xorg - help with rotation on dual monitor setup

    i have two monitors that im trying to get rotated properly but im having some trouble. i think its easiest to list out what i have going on here...
    1. im using a BFG nvidia geforce 7600 with the nvidia driver, and everything on the system is up to date
    2. everything works fine when i just put the monitors in their normal 1280x1024 side by side
    3. when i put Option "Rotate" "CCW" in the device section (as seen in the config below), i get my left monitor rotated nicely and my right monitor is rotated as well but it is setup as if it is below my left monitor.
    4. when i take out the setting from #3 and use Option "RandRRotation" "true" im started into normal side-by-side like in #2, then using xrandr -o left will get me the same result as #3 with right monitor below left.
    5. <a href="http://briancurtin.com/linux/Xorg.0.log">here is my Xorg.0.log</a> and <a href="http://briancurtin.com/linux/xorg.conf">here is my xorg.conf</a>.
    ideally i'd like to use the setup in #3 but have the monitors be side-by-side in orientation, so that i can move the mouse off of the right edge of left monitor into the right monitor, rather than having to go to the bottom edge and having it magically appear on the right monitor. if thats confusing i can draw it up.
    is this possible? any help would be greatly appreciated

    im kind of thinking now that i cant do this
    the desktop is seen as just one big desktop stretched across two monitors...so when you rotate/xrandr it, its going to do the same and assume you stack your two monitors on top of each other.
    i think im right, but can anyone confirm that?

  • Help with rotating circular menu

    Hi there. With help from a few tutorials, I've made a menu with 5 buttons that rotate around a central Clip. So far so good.
    Except I need to add a lightning that will point toward the center whenever a button is activated. Much like picture below:
    Everything I've tried so far has produced unexpected results
    So I would really appreciate any suggestions as to how I might fix my code (AS2) and get the lightning to position itself where it must be. Thanks!
    var rotX:Number = 290;
    var rotY:Number = 140;
    var Centre:Number = Stage.height/2;
    var vitesse:Number = 0.1;
    var sceneW:Number =Stage.width;
    var sceneH:Number = Stage.height;
    var nbI:Number=5;
    var angle:Number=1;
    var i:Number;
    var lightning:MovieClip = this.attachMovie("lightning", "lightning", 1000);
    lightning._alpha = 0;
    var videostopped:Boolean = false;
    for(i=0;i<nbI;i++)
       var button:MovieClip = this.attachMovie('Icone'+i,'Ic'+i,i);
       button.onRelease= onRelease;
       button.onRollOut = onRollOut;
       button.onRollOver = onRollOver;
       button._y = sceneH /2;
    //_____________________test
    function onRollOver():Void {
            //I want to add a "lightning" movieClip between the center and the button that is rolled over     
       lightning._alpha = 100;
       videostopped = true;
    function onRollOut():Void {
            //then remove it.
       lightning._alpha = 0;
       videostopped = false;
    onEnterFrame=function(){
         if (!videostopped) {
          if (angle > (2*Math.PI))
               angle = 0;
          }else{               
               for(i=0; i<nbI; i++){
                   //_____________________angle on x axis
                   this['Ic'+i]._x=rotX*Math.cos(angle+2*Math.PI*i/nbI)+sceneW/2;
                   //_____________________angle on y axis
                   this['Ic'+i]._y=rotY*Math.sin(angle+2*Math.PI*i/nbI)+sceneH/2;
                   //_____________________Speed
                        angle=angle+(sceneW/180)/sceneH*vitesse;

    I'll probably have to leave you to minds greater than mine for a solution to this.  To have things arranged with long rectangles and a flattened oval shaped path around the center as you show complicates matters in terms of how the _x/_y properties need to vary in order to not be hitting the inner or outer buttons.
    If it were mine to solve I would probably bend towards making the buttons circular shapes that follow a truly circular path around the center.  Then I would only have to manage the _rotation value of the lightning bolt which would have its registration at the center of the central button--essentially going around like the hand of a clock.

  • Need Help with Rotating Banner ad(please help)

    I am currently working on a flash project that rotates banners out auto and with button control, got the buttons to work just cant figure out how to get it  auto play throgh my bannersThis is the code i have for my project I am working on:
    My Projects has 3 layers:
    ( layer3)Actions:(coded on first frame)     Movieclip.prototype.elasticMove =  function(target, accel, convert) {
         step = step * accel + (target - this._x) * convert;
         this._x += step;
    (layer 2) My movie clip(it is one long strip that has all the banners in a row)(coded on first frame):nClipEvent  (enterFrame) {
                                         elasticMove(_root.newX, 0.5, 0.3)
    onClipEvent(load){
    _root.newX= 1200;
    (layer1)(my buttons)(only code for one button all are the same code except the actual position they call):on(release){
    _root.newX=1200;
    Let me know if i need to be a little more clear or you want a snap shot of my work, Another individual suggested that I use this code in the action layer:
    var newXA:Array=[0,600,1200,1800];
    var index:Number=1;
    setInterval(newXF,9000);
    function newXF(){
    _root.newX = newXA[index%newXA.length];
    It seems to work in the sense after a little bit it does change the banner auto and after you stayed on a banner for a while, but it always changes to the same banner.
    PLEASE HELP SOMEONE!!!!!!

    Incognito mode is a Google Chrome setting when you open a new window (Cmd+Shift+N on a Mac Ctrl+Shift+N on Windows) It opens a "private" window with no cookies and no tracking. The problem with it is that when you disable cookies, your license files are not sent to the site (whetehr it's YouTube or xFinity or any other that uses license files for paid content)  and it treats you as if you're a first time visitor. Paid videos won't play wihtout the cookies sending the license file info.
    This isn't a Flash Player setting. It's in Chrome. I did some research and according to Google, "Incignito" mode is off by default, and can ONLY be activate by the keyboard shortcut. There IS a way to disable it from the registry http://dev.chromium.org/administrators/policy-list-3#IncognitoModeAvailability

  • Help with rotating 3D cube

    Hello all:
    My question...
    Is in reference to the rotating 3D cube located at this site:
    http://www.kirupa.com/developer/actionscript/faces_depths.htm
    I'm interested in making a slight change to how it works and I'm
    hoping someone here can provide some guidance.
    I want to have 4 to 6 different video movie clips on the
    faces (that are also buttons which link to other pages) instead of
    the solid gray color. So, as the cube rotates different video clips
    will be visible (and clickable). Is this possible?
    Any help is greatly appreciated! -Yvonne

    Sorry to say, but I don't think you will be able to do that.
    I don't think that a video can be distorted in the ways that
    provide the illusion of depth. If I'm wrong I'd love to find out
    how!
    There may be some way with some pre-rendered images and the
    bitmap class or such in Flash 8, but it would be way beyond my
    understanding. (Well that and I haven't yet upgraded to Flash 8!)
    Good luck and let us know what you find out.

  • I need help with rotation interpolators

    I draw a big sphere which represents the earth and distribute on this big sphere small spheres represent countries.
    Now I want draw cone move between 2 small sphere.
    I have used rotation path interpolator but the motion of the cone not appear to me since the cone motion is within the big sphere.
    I want the cone start from first small sphere then turn around big sphere ti go to second small sphere.
    could you help me please?
    this is the code I used to make the motion
    float[] knots = {0.0f, 1.0f};
            Quat4f[] quats = new Quat4f[2];
            Point3f[] positions = new Point3f[2];
            positions[0] = flowNodes.get(sourceNode);
            positions[1] = flowNodes.get(destNode);
            // some checks for source and destination positions to set the right angel for the motion
            if(positions[0].x < positions[1].x&& positions[0].y < positions[1].y)
                 quats[0] = new Quat4f(1.0f,0.0f, 1.0f, (float)(-rotationAngel+Math.toRadians(45)));
                 quats[1] =  new Quat4f(1.0f,0.0f, 1.0f,(float)(-rotationAngel+Math.toRadians(45)));
            else if(positions[0].x==positions[1].x&&positions[0].y<positions[1].y)
                quats[0] = new Quat4f(1.0f,1.0f, 0.0f, (float)(-Math.toRadians(180)));
                quats[1] =  new Quat4f(1.0f,1.0f, 0.0f,(float)(-Math.toRadians(180)));
            else if(positions[0].x < positions[1].x&& positions[0].y > positions[1].y)
                quats[0] = new Quat4f(1.0f,0.0f, 1.0f, (float)(rotationAngel+Math.toRadians(10)));
                quats[1] =  new Quat4f(1.0f,0.0f, 1.0f,(float)(rotationAngel+Math.toRadians(10)));
            else if(positions[0].x == positions[1].x&& positions[0].y == positions[1].y)
                quats[0] = new Quat4f(1.0f,0.0f, 1.0f, (float)(rotationAngel+Math.toRadians(45)));
                quats[1] =  new Quat4f(1.0f,0.0f, 1.0f,(float)(rotationAngel+Math.toRadians(45)));
            else
                quats[0] = new Quat4f(1.0f,0.0f, 1.0f, (float)(rotationAngel));
                quats[1] = new Quat4f(1.0f,0.0f, 1.0f,(float)(rotationAngel));
    *creating the interpolator and give for this interpolator the highest priority to begin*
    motion now and then adding the interpolator to the branch group
            RotPosPathInterpolator rotPosPath = new RotPosPathInterpolator(alpha, arrowTG, arrowT3D, knots, quats, positions);
            rotPosPath.setSchedulingBounds(new BoundingSphere());
            rotPosPath.setSchedulingInterval(0);
            arrowGroup.addChild(rotPosPath); Edited by: walaa_akram on Jun 4, 2009 3:25 PM

    Please read through the help files. The w key activates rotation which will give you slightly different tools if the layer is 2D or 3D. The v key will give you the selection key. You should be able to click any tool in the tool bar. If you want to manually enter values press the r key with a layer selected in the time line to bring up rotation properties.
    I promise you that you cannot learn how to use After Effects efficiently without going through some training. I've been teaching AE for a little more than 20 years and I've never seen a single person successfully stumble through the app and produce anything other than a direct copy of someone else's project. Start here: Basic Workflow

  • Need help with rotation in Java

    Hi, I am trying to write an asteroids remake and I have gotten pretty far, but I'm stuck when I try to rotate my ship object. I have googled various formula's etc. but the code doesn't work as expected. I have posted the relevant ship.class below:
    import java.awt.Polygon;
    import java.awt.Graphics;
    import java.awt.Shape;
    import java.awt.*;
    public class Ship extends MyShape {
         Polygon body;
         //line2D.Double base;
         //line2D.Double lside;
         //line2D.Double rside;
         double dx;
         double dy;
         double angle;
         double dAngle;
         Graphics2D gg;
         public Ship(double a,double b) {
        x=a;
        y=b;
        //base=new line2D.Double(x,y,x+10,y);
        //lside=new line2D.Double(x,y,x+5,y-10);
        //rside=new line2D.Double(x+10,y,x-5,y-10);
        body=new Polygon();
        body.addPoint((int)x,(int)y);
        body.addPoint((int)x+20,(int)y);
        body.addPoint((int)x+10,(int)y-30);
        public void advance(){
        public double getX(){
             return x;
        public double getY(){
             return y;
        public void setY(int y){
             this.y=y;
        public void setX(int x){
             this.x=x;
          public void move(int delta){
          body.translate(0,delta);
           // body.addPoint(x,y);
           // body.addPoint(x+20,y);
           // body.addPoint(x+10,y-30);
        public void rotate(double x, double y, double theta){
             //body=new Polygon();
             theta=theta*(Math.PI/180);
             x=((x-(x+10))*Math.cos(theta)-y*Math.sin(theta)+(x+10));
             y=(y*Math.cos(theta)+(x-(x+10))*Math.sin(theta)+y);
                 //body.translate((int)Math.round(x),(int)Math.round(y));
                 body.addPoint((int)Math.round(x),(int)Math.round(y));
                 body.addPoint((int)Math.round(x+20),(int)Math.round(y));
                 body.addPoint((int)Math.round(x+10),(int)Math.round(y-30));
                 //g.rotate(theta,x,y);
        public void warpAround(int x,int y){
             body.translate(x,y);
        public void draw(Graphics2D g){
             g.draw(body);
    }If you could help me I would appreciate it,
    Sincerely,
    LJ
    P.s. I know its a little rough, I wanted to clean it up soon.
    Message was edited by:
    nipponman21

    Ok, I have officially given up on trying to get it to work via the mathematical definitions of a rotational transform. I decided to use the affine transform and it was MUCH easier than I thought to implement; however, the results are still unexpected, the ship actually turns and moves in a circle which is not what I want, here is the source (its a standalone app so you can compile and run it if you want) import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    public class BouncingBall extends JFrame implements Runnable, KeyListener {
        //Windows
        private JFrame frame;
        private DrawPanel pane; 
        private Thread t;
        //Game Vars.
        public Ball ball;
        public Ship ship;
        public static final int FPS = 30;
        public static final int WIDTH = 800;
        public static final int HEIGHT = 600;
        public static final int MAXSPEED = 30;
        public static double dx,dy;
        public static int theta=0;
        public BouncingBall() {
             frame=new JFrame();
             pane=new DrawPanel();
             frame.getContentPane().add(pane);
             frame.setVisible(true);
             frame.pack();
             frame.addKeyListener(this);
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             initGame();
             start();
        public void initGame(){
             ship=new Ship();
             ball=new Ball();
        public void start(){
        t=new Thread(this);
             t.start();
            public void run(){
                 while(true){
                      try{
                      Thread.sleep(10);
                      }catch(Exception e){}
                      pane.repaint();
        public static void main(String[] args) {
            new BouncingBall();
        public void keyPressed(KeyEvent e){
            switch(e.getKeyCode()){
                   case KeyEvent.VK_UP:
                   dy--;
                   if(dy<MAXSPEED){
                   ship.move(0,dy);
                   else{
                   dy=MAXSPEED;
                   ship.move(0,dy);
                   break;
                   case KeyEvent.VK_LEFT:
                        theta++;
                        break;
                   case KeyEvent.VK_RIGHT:
                        theta--;
                        break;     
        repaint();
        public void keyReleased(KeyEvent e){
            switch(e.getKeyCode()){
                   case KeyEvent.VK_UP:
                   case KeyEvent.VK_DOWN:
                   dy=0;     
                   break;
        repaint();
        public void keyTyped(KeyEvent e){
        class Ball{
              double x;
              double y;
             private Arc2D.Double body;
             public Ball(){
                  x=600.0;
                  y=500.0;
                  body=new Arc2D.Double(x,y,30.0,30.0,0.0,360.0,Arc2D.OPEN);
             public void move(double dx,double dy){
                  body=new Arc2D.Double();
                  x+=dx;
                  y+=dy;
                  body=new Arc2D.Double(x,y,30.0,30.0,0.0,360.0,Arc2D.OPEN);
             public double getX(){
             return this.x;
             public double getY(){
             return this.y;
        class Ship{
              double x;
              double y;
              double angle;         
             private Polygon body;
             public Ship(){
                  x=400.0;
                  y=300.0;
                  angle=0;
                  body=new Polygon();
                  body.addPoint((int)Math.round(x),(int)Math.round(y));
                  body.addPoint((int)Math.round(x+15),(int)Math.round(y));
                  body.addPoint((int)Math.round(x+7.5),(int)Math.round(y-20));
             public void move(double dx,double dy){
                  body=new Polygon();
                  x+=dx;
                  y+=dy;
                  body.addPoint((int)Math.round(x),(int)Math.round(y));
                  body.addPoint((int)Math.round(x+15),(int)Math.round(y));
                  body.addPoint((int)Math.round(x+7.5),(int)Math.round(y-20));
             public double getX(){
             return this.x;
             public double getY(){
             return this.y;
        class DrawPanel extends JPanel{
                public DrawPanel(){
                  setBackground(Color.black);
                  setPreferredSize(new Dimension(BouncingBall.WIDTH,BouncingBall.HEIGHT));
             public void paintComponent(Graphics g){
                 super.paintComponent(g);
                 Graphics2D g2d=(Graphics2D)g;
                 g2d.setColor(Color.white);
                 g2d.fill(ball.body);
                 g2d.rotate(theta*Math.PI / 180.0);     
                 g2d.fill(ship.body);
    }Can you guys maybe run this and look over the code and tell me what I'm doing wrong? I would definitely appreciate it Thanks.

  • Help with rotating a movieclip please!

    How do I rotate a movieclip 360 degrees over a period of time?  Can I use "new tween" ?  I am trying to rotate the movieclip while it is moving from position y to y+50 (this is done using new tween)

    Yes, you can simultaneously rotate the object using another Tween that changes the rotation property of the instance.

  • My iMessage screen is locked horizontally and will not rotate. When I access the camera through iMessage it will not rotate either. Any help with this will be very much appreciated.

    My iMessage screen is locked horizontally and will not rotate. When I access the camera through iMessage it will not rotate either. Any help with this will be very much appreciated.

    Hi MikeyGway,
    If you are having rotation issues on your iPad, you may find the following articles helpful:
    iOS: Screen does not rotate
    http://support.apple.com/kb/ts3805
    iPad: Understanding the side switch
    http://support.apple.com/kb/HT4085
    Regards,
    - Brenden

  • Problem with rotation and landscape mode in iOS 8

    From start of iOS 8 I have got problem with rotation in my iPhone 5S 32GB as well as in my iPad mini retina 32GB. Automatical rotation to landscape mode is not working correctly. For example if you take the phone or tablet to landscape mode in base display and tap to Safari, Mail, Messages, the app will start but stay in normal mode, not landscape. Then you have to back the phone to normal portrait mode and back to landscape and only then the phone do the landscape mode. I have never seen this problem in iOS 7 or older.
    Could you help me anyone with this problem? Or is the problem generally in iOS 8.
    Thanks a lot
    Jakub

    Brian, thanks, but it's not a rotation lock issue - at least not relating to the rotation lock setting. It's just a general use setting. Right now i have my iPhone propped in landscape mode. If I now hit the home button, essentially returning to a portrait setting though my phone is still positioned in landscape, then open any other app that supports landscape, that app WILL NOT orient itself to landscape mode. It will stay in portrait mode. The phone has to be physically oriented to portrait, then back to landscape for the app to register landscape mode properly. This is a glitch, and not a rotation lock issue. it ought to be noted that this was not an issue in iOS 7 or any previous iteration.

  • Help with pdf tasks

    Hello,
    I am trying to automate a couple of specific tasks with pdf files but I am having some trouble. At my job we are printing files to pdf but afterwards we must go back and edit the pdf files. Basically what we need to do is this (in order):
    1) Rotate the first 'one to three' pages. The first page(s) need to be rotated counterclockwise but it can be 1-3 pages that need this. All we know is that they always appear first. These pages are very similiar in content so I was thinking about making the program search for a keyword common to those pages then rotate it if it finds that keyword. That way we can ensure that its only rotating the pages which need to be rotated.
    2) The last 3 pages of the document need to be moved to the top. These documents vary in number of pages so I cant just tell the program to move certain pages numbers to the top. All we know is that its always the last 3 pages of any document that need to be moved to the top. Also, just for clarification is another way to reorder pages in Acrobat besides dragging them with the mouse?
    Any input would be greatly appreciated.
    Thanks
    Fazal

    Both of these could be implemented using JavaScript, perhaps using a batch sequence. #2 is easy, and #1 may or may not be possible/reliable based on the actual content of the document.
    For #1, a script is able to loop through the words on a page to search for one or more words. If found, it can look at the position of the word on the page, and if it meets the position criteria, use the setPageRotations document method to rotate the page.
    For #2, just use the movePage document method to move the last three pages.
    If you need help with the code, consider posting in the Acrobat Scripting forum. Include more information for #1 if you do.

  • Help with autoplay w/out gallery.js

    Hello,
    I need some help with a project I'm trying to complete.  I am working on a simple interface for some photos of family.  I've attached my interface mockup, or you can view it quickly here: http://picasaweb.google.com/lh/photo/C_6LgYVWjxAEELKOk8lLsw?authkey=Gv1sRgCPSEsdbyuYuNRg&f eat=directlink
    The thumbnails load below and when clicked load the larger image in the window above.
    These are the js files im loading:
    <script src="/SpryData.js" type="text/javascript" language="javascript"></script>
    <script src="/SpryTabbedPanels.js" type="text/javascript" language="javascript"></script>
    <script type="text/javascript" src="/SpryAssets/SprySlidingPanels.js"></script>
    <script src="/SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
    <script src="/SpryAssets/cp_unobtrusive.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryDOMUtils.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryEffects.js" type="text/javascript"></script>
    I want it so that the images will autoplay but as of now I do not have it set up so i can use gallery.js and don't want to try to implement it.  Is there another way to do this? I was thinking it might be more of a nicety not having to click on each thumbnail and rather have each one autoload one after the other.  If you think i HAVE to use gallery.js, any pointers or place where i can learn to implement it?
    Thanks!
    Rob

    wow. was i being so unclear that you completely misunderstood my question?
    1.  I already have a spry photo gallery working, its on a private server with password so i cant link to it.
    2.  I posted a picture of the interface.  It works perfect; thumbnails in bottom row that load big pic in a div above.
    3.  how do i make it so that the pictures auto advance at a timed rate without going back and implementing the gallery.js file and having to reorientate my code, or is it easier than i think?
    4.  Is there another MORE SIMPLE way of doing this i.e. a javascript image rotator
    Thanks in advance.

  • How do I open HELP with Photoshop Elements12?

    Hi, I haven't used PSE in awhile and recently bought PSE release 12 so I went through looked at the Users manual, view the Online videos and wanted to check on HELP and the dropdown menu Photoshop Elements HELP (PF1) but nothing happened. I did this is in all three modes (Quick, Guided and Expert) but "help" did not appear so my question is, how do I open HELP with PSE12?
    Thanks,
    Bob
    P.S.- my objective (what I was looking for) were the step by step instructions on how to straighten a photo

    To automatically straighten the image and leave the canvas around the image, choose Image >> Rotate >> Straighten Image.
    The straightened image contains areas of blank background, but no pixels are clipped.
    To automatically straighten and crop the image, choose Image >> Rotate >> Straighten And Crop Image.
    The straightened image does not contain areas of blank background, but some pixels are clipped.
    If you have a photo with an horizon you can drag a line along it with the straighten tool.
    Click Help on the top menu bar for the on-line help files.

  • I need help with tracking

    Ok the video that you can see on my youtube is the one I need help with. The video is actually in 1080p and I have no idea why it is showing in such a low resolution, but that is not the problem. I need to track the gun and add a null to that track, after that I want to add a red solid layer and bring down its opacity a little, to simulate a laser sight from the gun.Then I tried to parent and SHIFT parent the red solid to the track, the end product would have to look like what you can see in the picture. I have watched a TON of videos about tracking and just can not the the result I need. the laser needs to follow the gun as I aim up and bring the gun down. How should I do this.......? Please someone help or link me a tutorial that will be helpful.....

    You have a couple of problems. First you don't need to use shift parent, just parent. Second, your red solid is a 3D layer and you have applied 2D tracking info to the solid. Actually, there's another mistake and it is in the tracking. You should also be tracking scale because the gun moves from left to right as well as up and down. This changes the distance between the front and back tracking points.
    My workflow with this project would be:
    Track Motion of the front and back of the gun including position, scale and rotation
    Apply the track info to a null called GunTrack or something like that
    Add a solid and apply the beam effect or mask the red solid to simulate the shape of a laser sight
    Change the blend mode of the solid to ADD
    Move the anchor point to the center of the starting point of the laser
    Parent the solid to the Gun Track null
    That should do it.

  • Help with time expression!

    Hi everyone, I need some help with the time expression.
    Im working with video copilot´s plugin element 3d and i've made a spere shaped thing with particles which im going to sync to music. The problem is that when i make the simple expression "time*321" on the noise evolution value to make the sphere move organicly throughout the whole video it only does so for about two minutes then it just stops changing even though the value changes. The pictures might help you understand.
    Pictures: http://puu.sh/adNNB/e8de72a1e8.jpg, http://puu.sh/adNQJ/4fe8d4fe94.jpg, http://puu.sh/adNRx/8ecff2b2ca.jpg
    Then there is another problem which is that the sphere evolves alot faster with the time set to 321 compared to when i have it on 30.
    I hope you can help me and im sorry for my bad english just tell me if there is something you dont understand.

    I think you are giving the rotation value more than it can handle. After a while, many of the values in AE will stop increasing because the math can't go any further. Here are two things for you to try.
    1) Use this simple expression for increasing the value of something.
    THE BIG PICTURE:  ([Amount of Change] / [Number of Seconds]) * time
    ROTATION EXAMPLE: (360 / 5) * time;   <----- This will rotate a layer 360º over 5 seconds. It will also continue to rotate until the end of the comp or you run out of math.
    POSITION EXAMPLE:  delta = (500 / 2) * time; // This changes the value of "delta" 500 units over 2 seconds and continues.
                                       x = value[0] + delta; // Uses the x value from frame 0 and adds the delta to provide movement
                                       y = value[1]; // Uses the y value
                                       [x, y] // sends the values back to the layer
    2) Modulus will recycle the numbers. Using your current expression, you can add modulus, and use it to recycle your math.
    EXPRESSION:  (time * 321) % 360
    The % is the modulus, and it resets the count every 360º.
    Good luck!
    Trent

Maybe you are looking for

  • I just bought more icloud storage, why does it not let me backup my iPhone 5..says i need 1.4 GB of space

    i just bought more icloud storage, why does it not let me backup my iPhone 5..says i need 1.4 GB of space?..I just bought 10 more in icloud.

  • To Fetch Data from GTS and print in R/3

    Hi,   iam in need of help. the core is i have a print program in R/3.from R/3 i have to validate some field with SAPGTS. so that i have to apply a RFC call from R/3 ( print program ) to GTS and i have to fetch the data from GTS and print in R/3. help

  • Hi   oss note

    hi i have oss note but it is not implementing.  THERE ARE INSTRUCTIONS IN THAT  OSS NOTES FOR CHANGING CODE OF STANDARD REPORT. SHOLULD I CHANGE THE STANDARD REPORT???? SINCE OSS NOTE IS NOT IMPLEMENTING, WHAT IS THE SOL OTHER THAN CHANGING STANDARD

  • External service for customer..?

    hi guru's Can anybody give some inputs For service order, we are getting a service order from customer. From our company we are sending man, materials and transports to customer sites to do the service. How can we map into SAP, what are activities of

  • How to get past Crystal Reports Server 2008 Linux install error

    Hi,      During the install of Crystal Reports Server 2008 on Red Hat Linux we select use an existing DB (Oracle) and it prompts for: Crystal Reports Server 2008 Setup Enter the information for your new CMS Oracle TNSNAME : [SANDBOX