position of the object controlled by time

So, I want to control the position of a white box using expressions because I can't use the keyframe I want (or I'm just stupid).

I already have

a = thisComp.layer("White_box").effect ("sound keys") ("Output 1") * 1;

b = thisComp.layer("White_box").effect ("sound keys") ("output 2") * 1;

c = thisComp.layer("White_box").effect ("sound keys") ("output 3") * 1;

y = a, b, c;

value - [0, y];

in the expressions of the white box, so what can I do now to control the position of the box with the time?

Select the layer with the expression, then the effect > options for expressions > Slider control.

Then change the first part of the expression:

mult = effect ("Slider Control") ("Slider");

In addition, y = a, b, c will define just y of c, not of a + b + c.

Dan

Tags: After Effects

Similar Questions

  • How to know the position of the object in a script?

    I want to know the number of position or page when I find something (e.g. when using findtext()) and move to that. It's the same function find/change in indesign, but I can't find the position value and can not move the position of the object.

    How can I make this script?

    Thank you

    Use:

    myText.showText ();

    @+

    Marc

  • Position of the object changes with the new layer

    After Effects CS6 11.0.4.2

    I have installed recent updates, according to this page (FAQ: what information should I provide when you ask a question on this forum?)

    10 Pro 64-bit Windows

    I have an AMD FX (tm) - 8350 eight cores 4 GHz processor

    8 GB RAM

    AMD Radeon 200 series graphics card R9

    3rd party plugins installed: 3-d element.

    I have an object made to 3D element bound to a null object to control its movement. The position that there is everything I like. However, when I add a new layer (layer setting, sound, text or other) changes the position of the null object. It comes to a lot of trouble because I use 3d objects and as they occupy a different position, their movement seems wrong.

    I wanted to add an adjustment layer, so I précomposé just what I have and add the adjustment to the model layer, so it does not change. It worked perfectly. But, now, I want to add a new text object, bring it to feature 3D extrude it and bind it to a null object, the problem is that if I add the null object, or the text layer to the original model, the previous objects will change their position.

    I use phrases such as wiggle and time * with the first null object. This has something to do with that evil?

    How can I solve this problem?

    Thank you

    Yes. The seed of wiggle() and other Pseudo-aleatoires functions is obtained according to the index. You must manually set a seed with seedRandom (< your="" value="" here="">, true) to avoid tampering. This is nothing unusual.

    Mylenium

  • Draw the position of the object of a tweeing... need help.

    Hello

    I was reviewing documentation from adobe, but so far I have not found a working solution on the way to draw position/width an object. I think the only thing I got is obsolete, because in this way my film go back always to the output the following message window appears: undefined

    Import fl.transitions.Tween;
    Fl.transitions.easing import. *;
    Import fl.transitions.TweenEvent;

    bar_mc. Width = 0;

    var = new Tween bar (bar_mc, "width", Strong.easeOut, 0, 700, 3, true);

    bar.addEventListener (TweenEvent.MOTION_FINISH, onFinish);
    function onFinish(e:TweenEvent):void {}
    trace (this.position);
    }

    Could someone help me please?

    Thank you!!

    The way you have it there are two problems, the first being you control only the width once interpolation... begins the second being that you try to verify a vallue of width which is much too narrow for wait - it's unlikely that the width will be exactly 200 at any time while it is interpolated.

    Here's a solution that repeatedly checks the width until the width is greater than 200...

    Import fl.transitions.Tween;
    Fl.transitions.easing import. *;
    Import fl.transitions.TweenEvent;

    bar_mc. Width = 0;
    style_mc.Alpha = 0;

    function checkBarWidth(evt:Event):void {}
    If (bar_mc.width > = 200) {}
    stage.removeEventListener (Event.ENTER_FRAME, checkBarWidth);
    var style = new Tween (style_mc, "alpha", Strong.easeOut, 0,1,3, true);
    }
    }

    stage.addEventListener (Event.ENTER_FRAME, checkBarWidth);

    var = new Tween bar (bar_mc, "width", Strong.easeOut, 0, 700, 3, true);

  • Type of the object called several times Oracle constructor

    I have an object of type with a custom constructor. In SQL, when I reference attributes the constructor is called several times in Oracle 11.2.0.4.

    1. Why the constructor is called more than once?
    2. How can I stop it?

    My current job is about to reference attributes and use the / * + materialize * / tip.


    Problem installation

        create or replace type Foo as object
        (
          Bar1 NUMBER,
          Bar2 NUMBER,
          Bar3 NUMBER,
    
          CONSTRUCTOR FUNCTION Foo(p_Bar1 NUMBER, p_Bar2 NUMBER, p_Bar3 NUMBER)
            RETURN SELF AS RESULT
            DETERMINISTIC
        )
    /
        create or replace type body Foo is
    
          -- Member procedures and functions
          CONSTRUCTOR FUNCTION Foo(p_Bar1 NUMBER, p_Bar2 NUMBER, p_Bar3 NUMBER)
            RETURN SELF AS RESULT
            DETERMINISTIC
          AS
          BEGIN
            SELF.Bar1 := p_Bar1;
            SELF.Bar2 := p_Bar2;
            SELF.Bar3 := p_Bar3;
            dbms_output.put_line('Foo Constructor Called');
            RETURN;
          END;
    
        end;
    

    Problem

        -- Constructor is called 6 times! 
        -- Once for each column and once for each predicate in the where clause.
        SELECT x.f.bar1 AS bar1, x.f.bar2 AS bar2, x.f.bar3 AS bar3, f
        FROM (
          SELECT foo(p_Bar1 => 1, p_Bar2 => 2, p_Bar3 => 3) f
          FROM dual d
        ) x
        WHERE x.f.bar1 = x.f.bar1 AND x.f.bar2 = x.f.bar2
    

    Output

    Foo constructor called

    Foo constructor called

    Foo constructor called

    Foo constructor called

    Foo constructor called

    Foo constructor called

    Workaround

        -- Work Around
        -- Constructor is called 3 times
        -- Once for each column in the inline view. 
        -- Note, I removed column f (the object type) because it's not compatible with the materialize hint.
        WITH y AS (
          SELECT /*+ materialize */ x.f.bar1 AS bar1, x.f.bar2 AS bar2, x.f.bar3 AS bar3
          FROM (
            SELECT foo(p_Bar1 => 1, p_Bar2 => 2, p_Bar3 => 3) f
            FROM dual d
          ) x
        )
        SELECT y.bar1, y.bar2, y.bar3
        FROM y
        WHERE y.bar1 = y.bar1 AND y.bar2 = y.bar2
    

    Another solution is described in this thread... Access to the fields of an object custom type... which makes use of a type of collection combined with SCOREBOARD operator, like this...

    create or replace type FooTable as table of Foo;
    
    SELECT x.bar1 AS bar1, x.bar2 AS bar2, x.bar3 AS bar3, value(x) f
        FROM table(FooTable(
          foo(p_Bar1 => 1, p_Bar2 => 2, p_Bar3 => 3)
        )) x
        WHERE x.bar1 = x.bar1 AND x.bar2 = x.bar2
    ;
    
    BAR1 BAR2 BAR2 F
    1    2    3    (1, 2, 3)
    
    Foo Constructor Called
    

    Hope that helps...

    Gerard

  • Positioning of the Popup control on the scene (Notification control)

    Hello everyone.

    I am creating a JFX control that will provide an easy way to display notifications (i.e. control notification). This control extends to the javafx.stage.Popup (complete code on https://bitbucket.org/scekics/jfxnotification) and all is fine - except for positioning.

    I tried to replace the
    public void show(Window owner)
    method so that the default Notification is positioned in the top box in the center of the stage/scene (the most logical place, in my opinion), but I just can't do things. I tried different formulas, properties, scene and calculations based on stage, but in wain.

    This is the current method:
    @Override
        public void show(Window window) {
            Double sceneLayoutX=window.getScene().getRoot().getLayoutX();
            Double sceneY=window.getScene().getY();
            Double sceneWidth=window.getScene().getWidth();
            Double windowWidth=window.getWidth();
            Double myX;
            myX=(windowWidth/2.0)-300.0+sceneLayoutX;
            setX(myX);
            setY(sceneY+30.0);
            super.show(window);
            initAutomaticClosing();
    }
    Please note that these dimensions hardcoded are an act of a desperate man - so don't judge. :)

    Each recommendation (concerning this problem and Notification control in general) is welcome. Thank you!

    Published by: scekics on January 13, 2013 04:27 - corrected URL

    I think that the problem is that x and that you are calculating in the owner window are coordinates of the content compared to the window; Whereas x and y are you computer to switch to (...) setX and setY (...) are screen coordinates.

    How about this? The idea is to calculate the (screen) x coordinates of the notification of the (screen) x coordinates of the window, the window width and the width of the Notification itself (Similarly for y). I am sure you have understood, the width of the Notification is not calculated until after that he is shown, so I used links and Auditors to keep everything in harmony. This centers the Notification, which is not quite what you asked in terms of coordinates, but you can adjust if necessary.

    I'm not sure what happens if one of the overloaded methods show() is called. You can override those and to call this method.

        @Override
        public void show(final Window window) {
          final DoubleBinding xBinding = new DoubleBinding() {
            { super.bind(window.xProperty(), window.widthProperty(), widthProperty()); }
            @Override
            protected double computeValue() {
              return window.getX() + (window.getWidth() - getWidth())/2 ;
            }
          };
          final DoubleBinding yBinding = new DoubleBinding() {
            { super.bind(window.yProperty(), window.heightProperty(), heightProperty()); }
            @Override
            protected double computeValue() {
              return window.getY() + (window.getHeight() - getHeight())/2 ;
            }
          };
          final ChangeListener xUpdateListener = new ChangeListener() {
            @Override
            public void changed(ObservableValue observable, Number oldValue, Number newValue) {
              setX(xBinding.get());
            }
          };
          xBinding.addListener(xUpdateListener);
          final ChangeListener yUpdateListener = new ChangeListener() {
            @Override
            public void changed(ObservableValue observable, Number oldValue, Number newValue) {
              setY(yBinding.get());
            }
          };
          yBinding.addListener(yUpdateListener);
          this.addEventHandler(WindowEvent.WINDOW_HIDDEN, new EventHandler() {
            @Override
            public void handle(WindowEvent event) {
              xBinding.removeListener(xUpdateListener);
              yBinding.removeListener(yUpdateListener);
            }
          });
          super.show(window);
        }
    
  • AS3 to get the position of the object in the other object

    Please I need help, I have an object inside this object I have other objects, (MC. Part1, MC. Part2, MC. Part3... etc), the MC spin in the stage, thanks to the tween, flash tools, it's ok, the parent of the object rotate and the child with him, but I want to get the child (MC1 coordenate. Part1.x, MC1. Part1.y, MC1. Part1.z, etc.), I try with trace (MC1. Part1.x) and always give me the same coordenate, I think that the coordenate in the parent, but I want the coordinates of the child when the parend is running.

    Please help me

    The coordinates of the child objects do not change compared to the parent who keeps them if the parent is moved, then they will report the same values all the time.  If you want to know the location of the main stage, you must use the localToGlobal() method.  Try Google search using terms like "AS3 localToGlobal tutorial" for an explanation of how to use it.

  • Calendar AS3 with the position of the mouse control.

    Hi everyone, thanks in advance to the community for any help you might be able to offer, it's all the incredably appreceated.

    It is a problem which had scratching me my head for months and be a facilitator, was really stretching my AS3 skills a bit.

    I create an interactive story of sorts and what is needed is to use the horizontal position of the mouse to scroll forward or backward on a timeline that is, when the mouse is in the dead center of the stage that the playhead does not move, but once he deveates right centre of the read head moves forward and plays the animation and a Once it moves to the left the read head begins to move backwards.

    Ideally I would have an acceleration effect, where the animation scrolls while the timeline at a minimum speed when the mouse is always close to the Center but at a faster rate once it is reached the edges, but right now, it is a secondary concern.

    There are also keys to move through various scenes, I can code myself, I only mention this in case it affects the rest of the code.

    Thanks for you help and any solutions or navagating alternitive methods a timeline are welcome indeed

    I'll be sure to pass on the karma to an area im more familiar with.

    var mc:MovieClip = MovieClip (this);  //<- timeline="" you="" want="" to="" control="" with="" mouse="">

    var maxScrollSpeed:int = 100;  / s max for mc above

    var m:Number;

    var b:Number;

    var prevFPS:int;

    paramF(0,-maxScrollSpeed,stage.stageWidth,maxScrollSpeed);

    this.addEventListener (MouseEvent.MOUSE_MOVE, scrollF);

    function scrollF(e:Event):void {}

    var fps:int = Math.round(m*mouseX+b);

    {if(prevFPS&&prevFPS!=FPS)}

    {if(FPS!=0)}

    {if(FPS>0)}

    playF (mc, mc.currentFrame, mc.totalFrames, fps);

    } else {}

    playF(mc,mc.currentFrame,1,-fps);

    }

    } else {}

    stopF (mc);

    }

    }

    prevFPS = images/second.

    }

    function playF(mc:MovieClip,_m:int,_n:int,_fps:int):void {}

    var playFFF2:Function = {function(mc:MovieClip):void}

    If (mc.m

    mc.nextFrame ();

    } else {}

    mc.prevFrame ();

    }

    If (mc.currentFrame == mc.n) {}

    clearInterval (mc.int);

    }

    updateAfterEvent();

    };

    MC.m = m;

    MC.n = n;

    MC. FPS = FPS;

    mc.gotoAndStop (mc.m);

    clearInterval (mc.int);

    MC.int = setInterval (playFFF2, 1000/mc.fps, mc);

    }

    function stopF(mc:MovieClip):void {}

    clearInterval (mc.int);

    }

    function paramF(x1:Number,y1:Number,x2:Number,y2:Number):void {}

    m =(Y1-Y2) /(x1-x2);

    b = y1 - m * x 1;

    }

  • Incompatible transparency according to the position of the object on the page

    I have a corner object that uses a radial gradient, with an opacity of 100% in the Center and 0% opacity to the edge. When asked over a rectangle object to rounded corners, the corner object has the appearance of "gradual" to the edge, as not expected, no problem. However, if I copy (or move) these two objects (Alt + click - move) to another area of the page, the copied or moved corner object seems to lose its gradient effect (even if it is apparently still applied, evidenced by selecting the object and selecting the gradient tool) and seems to be a solid color.

    -J' checked each object is on the correct layer: corners, on top of the rounded rectangles, on top of the background.

    -The problem is not a screen problem, because it is obvious when the page is printed in too.

    So I can't work on why move the object to a different location on the page affects its gradient. Any ideas?

    IllustratorTransparencyIssue.jpg

    (I don't see any way to reach the source file. Is it possible?)

    I found your problem. Your appearance palette is slightly different from mine on something important 'layer '.

    You have assigned the fill of the layer rather than the path. So, when you drag a copy, the gradient is off. Clear the appearance (the menu flyout). Make sure that you have the selected path and not the entire layer (look at the apallette aspect), and then add the filling.

  • Position of the object to change every 5 seconds by using the timer in QML

    I need help,

    I have five circle like this

    O O O O O

    I want to make a "BOLD" change position every 5 seconds and is permanently as an indicator of the slide, someone can tell me how to do in QML?

    Follow this

    http://developer.BlackBerry.com/native/documentation/Cascades/dev/signals_slots/signals_slots_add_ac...

    One of the options is:

    QML

    property int circleIndex: 0 // Firts circle
    
    CustomTimer{
        id: timer
        interval: 5000 // 5 seconds
        onTimeout:{
            if (circleIndex == 4){ // 5th circle
                circleIndex = 0
            }else{
                circleIndex++
            }
        }
    }
    

    It may be useful

  • position of the object

    Hello

    It often happens that I need to put several object (text, for example) at the same distance

    for example

    text 1

    text 2

    text 3

    ..

    a list of the arc of tetext that I need hgave separate them by the same vertical distanze

    How can I do that manually?

    Thank you

    Then please look if maybe your policy has the font numbers table. Those that exist

    What I was referring to is the following:

  • Position of the objects on the screen

    Hello

    I think it's a very simple question for you, but please help me in this.

    I have little LabelFields and BitmapFields on my screen. When I add them to the screen, they are added in a vertical way. How can I set their location according to my wish?

    What I want to say now is:

    Bitmap1

    Bitmap2

    Label1

    Label2

    I want something like:

    Bitmap1 Label1

    Bitmap2 Label2

    How can I configure related field!

    Add bitmap, lablel1 in a horizontal field Manager and bitmap2, label2 another manager of horizontal field... Then finally add these two horizontal frames to a vertical Manager inturn on the screen...

    See you soon...

  • How can I determine the position of the mouse in a 2D image control

    I have an app where I would like the user to be able to interact with objects in a 2D image control with the mouse.  To do this, I need to translate between the screen coordinates, which are transmitted with the events of mouse and in the control of 2D image.

    The problem that I am running is that I can't find a way to determine the screen coordinates of the top left corner of the drawing/client of the 2D image control area.  I tried to use the 'Position' of the image control property, but this results in a mismatch because of the difference between the upper-left corner of the image control (including the label, etc.) and the upper left corner of the drawing area.  See attached VI.

    Does anyone know how to get the coordinate of the screen from the corner of the drawing of the control of the photo area?

    Mark Moss

    I tend to use the mouse in the image control property to get the position.  Deals with things like the passage of origin for you.

  • position of the control

    Hi all

    I need to know the position of the control on the Panel frontal wrt the screen and not the Panel. Currently, if I have a chart on a FP, and I use the 'Position' property, it returns the top and left position of the wrt Control Panel. I need the position of the control on the screen and not the Panel.

    How can I get this information?

    Thank you

    Ritesh

    You have to take the position of the front panel (use the FP Panel limits) and then take the position of the control so add the top and left values of positions, there you go you've got the position of the order with respect to the screen.

    Note: All doing this keep the origin of the left and top FP exactly meets the edges of the Panel so that you can get the actual position.

  • Tab control position in the center of the screen

    Is it possible to place a tab control, so that it is always at the center of the screen (even if the user changes the window size)?

    I tried to use the size of panel properties to determine the Center, then the reference position of the tab control. But it seems to me that his position is relative to its position (?) start.

    Is there a way to position it related initially to the Group?

    Thanks in advance.

    SSK

    It is simple. Unless I get it, isn't this what you need?

Maybe you are looking for