Wind Shake Effect Around Z Axis

I would like to create a "Wind Shake Effect Around Z Axis". I have a image of the leave in vertical position standing on its stem and would like it to have an appearance as if it trembles in the wind.
I applied Wiggle effect. However it wiggles/distorts in all possible directions but the Z axis. What would be my course of actions/direction to try to emulate a slight rapid shake around the Z axis in the front veiew.
In other words you look at the leave and see its right edge coming at you and left edge away of you and then in reverse. Pritty much like skewing in 3D with exception of X and Y axis.
I use AE CS6 on Windows.

Thank you for your reply.
Looks like I will need step by step direction as I was not able to successfully implement your suggestion.
Here is what I tried.
1. With the Wiggle Gelatin effect applied to my "Leaf" layer and 3D turned on I clicked "P" on the keyboard which opened Position in under layer's "Transform". Holding down "Alt" I pressed stop watch on the Position and entered your code:
    seedRandom(index, true)
    leafJitter=wiggle(3,30);
    leafJitterZ=leafJitter[2];
I got this error message:
     After Effects warning: Class'Array" has no property or methid named '2'
    Expression disabled.
    Error occured at line 3.
    Comp:'shake leave test'
    Layer:1 ('Green2')
    Property;'Position'
2. Same as all of the above, but I selected "Position" under "Effects" of the layer and got this error message:
     After Effects warning: expression result must be of demension 3, not 1
    Expression disabled.
    Error occured at line 0.
    Comp:'shake leave test'
    Layer:1 ('Green2')
    Property;'Position'
3. I deleted the Wiggle Effect all together and applied you three lines of code ot Position. This produced no results.
Please let me know where I messed up or you need more specific info on my set up?

Similar Messages

  • Animate a cube to rotate around x axis!!!

    Hi! I'm trying to animate a cube to rotate around x axis using RotationInterpolator object.
    Can anyone kindly tell me how I can do that? I've seen the example at Sun's 3d tutorial but they use the default behavior which is rotating around y axis.
    Thanks in advance.
    --DM

    lol
    in fact the axis used in the RotationInterpolator is the one which is on the y axis in the local coordinates system obtained after the Transform3D is performed
    for example:
    - if you use only new Transform3D(), which does nothing, the axis will be y
    - but if you use rotz(), this transform3D transforms the old x axis into the new y one, the old y axis into the new -x one and the old z axis into the new z one. Thus in the new local coordinates system obtained, the new y axis matches the old x axis, so this x axis is used for the interpolator
    I don't know if I'm very clear, it's difficult to explain and I'm French ;)
    see the java 3D API :
    http://java.sun.com/products/java-media/3D/forDevelopers/J3D_1_3_API/j3dapi/javax/media/j3d/RotationInterpolator.html#RotationInterpolator(javax.media.j3d.Alpha, javax.media.j3d.TransformGroup, javax.media.j3d.Transform3D, float, float)

  • Creating a "SHAKE" effect in Edge

    Does anyone know how to create a "shake" effect in Adobe Edge. I'll use furniture as an example. Basically I want the user to shake the ipad, and a random pile of furniture shakes to create a nice, set-up room. I found a shake.js file to upload to the .html file. But I haven't figured out how to set the events in Edge, so it specifically shakes the furniture.
    THANKS!

    I meant the person casting his own shadow on other things. For casting a shadow ON your subject, I'd use emboss or many other good macros that are out there to make a feux Z (or depth) map, luma key that and plug it into iDisplace (with the shadow shape plugged into the left side of the node) so it looks like the shadow is conforming to ripples in clothing and details in the face. Then either use that new mask shape as a faded black bar layered over the subject or use it as a modifying matte in a Brightness node (best used when combined using KeyMix instead of just plugging it into the side of the Brightness node)
    Edit: I thought back and Z-map isn't the correct term for what I did there, the term I was looking for was contour map or bump map

  • Cleaning up audio causes "wind tunnel" effect - how to fix?

    I typically use Soundbooth to clean up any problems in audio, like hiss or buzz/hum noise.  I just use the default "Clean Up Audio" tool on the left side when I open the program.  It seems, though, when I adjust the levels to anything decent to get the problems out of the audio, inevitably I get a sort of "wind tunnel" effect in the sound.  Does anyone know how I can prevent this in the future?

    http://www.omahapokernews.org
    http://www.holdempokernews.org
    http://www.7cardstudplay.net
    http://www.5cardstudplay.net
    http://www.holdemspot.org
    http://www.texasholdemstate.net
    http://www.texasholdemstate.com
    http://www.pokerbonuslist.net
    http://www.pokerdownloadz.org
    http://www.signuppoker.net
    http://www.tournamentpokerz.com
    http://www.pokercalculatorz.com
    http://www.omahaodds.org
    http://www.omahaouts.org
    http://www.texasholdemrulesonline.net
    http://www.onlineholdemtips.com
    http://www.pokerhilo.net
    http://www.poker-hilo.com
    http://www.hilopokers.com
    http://www.nolimit-holdempoker.net
    http://www.texasholdemlimits.org
    http://www.texasholdemlimits.net
    http://www.onlinepokerlimits.org
    http://www.onlinepokerlimits.net
    http://www.onlinepokerlimits.com
    http://www.texasholdemlimits.com
    http://www.7cardplayer.net
    http://www.5cardplayer.net
    http://www.omahaacademy.org
    http://www.omahapokerrooms.net
    http://www.onlinepokerroomstop.net
    http://www.playpoker-toppokerrooms.com
    http://www.texasholdemz.com
    http://www.playpokeronline-casinos.com
    http://www.texasholdem-vip.com
    http://www.gamble-poker-holdem.com
    http://www.playpoker-holdem.com
    http://www.onlinetexasholdem-poker.com
    http://www.texasholdempokeracademy.com
    http://www.vip-texasholdem.com
    http://www.playfree-poker-online.com
    http://www.texasholdem-pokerrooms.org
    http://www.toppokerrooms.ws
    http://www.toppokercasino.ws
    http://www.onlinepokercasino.ws
    http://www.playpoker-online.ws
    http://www.online-texasholdem.ws
    http://www.play-texas-holdem.ws
    http://www.internet-texas-holdem-poker.ws
    http://www.poker-player.ws
    http://www.luckyschool.com

  • Javascript function to rotate an object around its axis

    Hello,
    I wonder if it is possible to rotate an object around its axis (eg 45 ° rotation)?
    I want to make this rotation with a button and a Javascript code!
    Is it possible? if so, have a track for me to start?
    thank you

    Possible, yes - but you will need some basic knowledge of how 3D matrix transformations work if you want to do anything complex.
    The code to rotate a node in a 3D scene by 45 degrees on the X axis is
    myNode.transform.rotateAboutXInPlace(Math.PI/4)

  • Wind Blowing Effect - HELP

    Hello, I'm trying to create the effect of a plant blowing in
    the wind. I'm not a Action Script guru by any means. Currently, I
    just have the plant on the stage and I just skew the image every 10
    frames or so and tween. It's OK but it's jumpy and definietly
    doesn't look like natural wind. Can anyone help me with
    this?

    I suggest that if you want to animate look at a real tree and
    either rotoscope or interpret that footage. A shortcut to animation
    in adobe software is using sequential blends in illustrator layers
    exporting a swf and importing it into flash layers. Be careful with
    grouping blends in illustrator though. To many blends at different
    depths can cause errors in vector calculus.
    Happy animating! :)

  • Need to rotate image around the axis

    Hi, I'm using this ti rotate the image, it works but I need to rotate the image around the center of the image, center axis.
    I don't understad what is the meaning of values 50 and 60, and what I need to write instead?
    public void paintComponent_new(Graphics g){
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D)g;
    g2.rotate (Math.toRadians(angle),60,60);
    g2.drawImage(pre.getImage(), 50, 50, this);
    g2.dispose();
    }

    Using that method, the rotation occurs around the point (x,y). The rotation is a measure of theta radians. One radian translates to 180/PI degrees; thus, there are 2*PI radians in 360 degrees.
    So if, for example, you wanted to rotate round the point (40,40) exactly 90 degrees, you could use
    Graphics2D g2d = ...;
    g2d.rotate(Math.PI/2, 40, 40);Note that this rotation is a translation of the view, not a translation of any contents. That means that anything drawn to the Graphics2D object will appear as if rotated in that fashion. Therefore, if you draw an image onto that Graphics2D object after calling rotate in that fashion, the image will be rotated as well.

  • How to limit rotation around an axis

    Hello!
    I am using Mouse Rotate to rotate an object around it's axis:
    MouseRotate mouseRotate = new MouseRotate();
    mouseRotate.setTransformGroup( sectionTransform );
    mouseRotate.setSchedulingBounds( new BoundingSphere() );
    mouseRotate.setFactor( 0, 0.3 );
    Currently it rotates 360 degrees, but I would like to be able to limit the rotation angle to say 180. Could you please help me out?
    Thanks!
    Anna.

    You might want to consider creating your own behaviour. It depends on your implementation, but if you have a Transform group above the object, you can get the transform and get the rotation values from that transform. It will take a bit of math, but here's a primer to get you started...
    http://www.martinb.com/maths/geometry/rotations/conversions/index.htm
    http://www.martinb.com/maths/geometry/rotations/conversions/matrixToEuler/index.htm
    so if you calculate the angle around a particular axis from that transform and it is "greater" than the limit, then you can just set the transform's rotation angle to the limit by reconstructing a new transform and placing that transform in the transform group.
    Anyway, I dont know if that helps. It really depends on what you have as far as implementation thus far. My best suggestion is to try to create your own rotation behaviour.
    Cheers,
    Greg

  • Rotate a Object Around Center Axis

    Hey peoples, new to flash here.  I'm using CS3 with ActionScript 3.0.  What I want is simple, and I've done some searching but nothing that can get me the right results.  I'm going to post a link that does exactly what I want:
    http://www.newgrounds.com/dump/item/d25a3dd46f2ff49f2ec892c425cbbd1e
    This rotates the circular object around a center point in a way that you can distort the object yet is still remains turning in a circular motion.  A simple motion tween rotating the image will only work if the object is perfectly round, so distorting the object to make it more straight or curved won't work with a simple tween.  I want to do exactly what is happening here (with my own object), is there some AS3 behind the scenes here making this turn on a center point??  Thanks for the help

    Yes, but I still don't know what you mean by the parent child relationship.  Lets say I use a simple rotate line like:
    objectname.rotation = 360;
    That should spin it, but how do I spin it correctly if the object is skewed like in the bottom right picture of my example?

  • Is selective cropping do able ? And moving effects round all axis ?

    Can you crop so for example the picture would appear in a circular cup ? As it only crops straight, unless you use the other crop type which seems to squash the picture.
    Also im adding explosions over some footage and it all looks very linear it their anyway to rotate explosions so they appear more 3d ? ( I know how to turn them 90 etc, but i want to rotate them on the other axis so back and forth.)
    Thanks Chris

    You can try a Shape Mask. There is the option for a circle, which can be adapted to produce different elipses, that way you should be able to match the shape of your cup.
    With regard to making your explosion less "2D" I know there is a function for Basic 3D in FCE, but all that does really is spin the video across a X,Y & Z axes. That I know of it doesn't distort it, though you can probably combine this with the other distort tools available. It's almost like holding a piece of glass in your hands and rotating it in all of the available directions, so I'm not sure if this would achieve what your looking for.

  • Encode results in "halo" effect around black text...

    Hello,
    I'm not sure where the problem lies. I am encoding a project and I have noticed a problem primarily around black text that appears throughout.
    Image:
    *Here are the Compressor settings:*
    Image:
    What Can I do to lessen the "halo" around black text?
    Lathe

    Like all heavy compression codecs such as DV, MPEG2 has serious issues with what we call high risetime pixel transitions. Reduce the detail level. You may need to add some preprocessing blur to help diminish the mosquito noise. Make the text slightly transparent. Add a nice soft drop shadow. If you're going to add an outline, make it softer than you think is necessary.
    If you are merely encoding a file that you cannot change, you will need to study the MPEG2 compression discussions very carefully. Encoding is a dark art, loaded with uncomfortable compromises and difficult decisions that require lowered expectations. Encoding output is directly proportional to the effort put into programming new settings at every scene change.
    bogiesan

  • Unwanted lightening effect around placed graphic

    I originally posted this in the InDesign forum but that may have been the wrong way to approach it.
    I have an Illustrator vector graphic placed in InDesign, it's over a dark background.
    Placed by itself the graphic looks fine, exports to PDF fine and prints fine.
    However, there is a drop shadow effect added to the frame in InDesign (using the regular select tool), after which the placed graphic still looks fine.
    There is, unfortunately, an invisible lightening effect added to the graphic which only manifests in the printed PDF.
    This lightening effect is not visible in the InDesign file and is not visible in the PDF on screen (even when I check the separations), it is only visible on the printout of the PDF.
    Since it is not visible in the PDF, here is a simulation of the lightening effect:
    http://img27.imageshack.us/img27/8025/windoweffect.jpg
    Anyone experienced anything like this?

    It could be anything, but probably due to flattening issues on PDF export.
    This is your screen shot, background removed, the two colored rectangles added in ID, added text for "The Gathering," the PS file added and the drop shadow effect applied to the PSD file from within ID. Screen shot is from the PDF.
    Take care, Mike

  • How to stop the Selection Tool from selecting effects around objects?

    This question is for Illustrator CS5.
    I can't seem to figure out how to fix this problem. I vaguely recall finding a solution in CS4, but cannot recall how it was achieved:
    Scenario: If I have a number of shapes on top of each other, with, for example, a drop shadow on the top shape, whenever I try and select the shape below it (it is peeking out from beneath the top shape, so I click on this 'peeking' section of the shape to try and select it) I cannot - it just selects the top shape as the top shape's drop shadow is 'blocking' the shape below it. Make sense?
    How do I go about about remedying this? I seem to recall being able to tell Illustrator to ignore 'effects' when making selections in CS4, but cannot work out how to do this in CS5. And is there a way to refine the 'sensitivity' or selection radius when clicking to make selections?
    Hopefully someone with the knowledge can please advise?
    Many thanks.

    Never heard of ignore effscts for this.
    Couple way to solve this
    CMD Click on the already selected top element, to select the element underneath.
    You may have used the visiblilty eyeball in the appearance pallette to temporarily hide the drop shadow
    You can use CMD 3 to hide selected top elements, make the change you need, then Opt CMD 3 to unhide
    For #1 to work, don't click too fast, or else your clicks will register as a double click rather than a 2nd clikc (depending on what you have set in you Keyboard preferences).
    I mention #3 cause this is a very useful tool for cleaning up and grouping complex documents, when you want to select multiple elements.

  • How to create magnification effect around the mouse.

    Hi everybody,
    I have a problem which really freaks me out at the moment. I am working on an image sorting software and I try to implement a magnification glass. The problem seems to be easy: Create the Region OF Interest, "zoom" in ,display result at the MousePosition. I got it so far:
    bimage is a BufferedImage
                            Graphics2D gi = bimage.createGraphics();
                            gi.setClip(0, 0, bimage.getWidth(), bimage.getHeight());
                   gi.drawImage(bimage, 0, 0, null);
                   //paints red rectangle around mouse position
                   gi.setColor(Color.blue);
                   gi.draw(new Rectangle(mousePosX-100, mousePosY-100, 200, 200));
                   Rectangle zoomRect = new Rectangle(mousePosX-100, mousePosY-100, 200,     200);
                   gi.setClip(zoomRect);
                   gi.copyArea(mousePosX-100, mousePosY-100, 200,     200, 0, 0);
                   gi.scale(1.1, 1.1);
                   gi.translate(-20, -20);
                   gi.drawImage(bimage, 0, 0, null);What happens is, that as soon as I translate it to the right position, the copy area copy's the scaled copy and so on. It looks horrible. Does anyone knows how to make it better?
    Thx in advance.

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import javax.swing.*;
    public class Magnifier extends JPanel implements ActionListener {
        OverlayComponent overlayComponent;
        public void actionPerformed(ActionEvent e) {
            boolean magnify = ((AbstractButton)e.getSource()).isSelected();
            overlayComponent.setMagnify(magnify);
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            int cols = 3, rows = 3, pad = 20;
            int w = getWidth(), h = getHeight();
            double dx = (double)(w - 2*pad)/cols;
            double dy = (double)(h - 2*pad)/rows;
            // Draw ovals.
            Color[] colors = {
                Color.cyan, Color.magenta, Color.yellow, Color.orange
            for(int j = 0, count = 0; j < rows; j++) {
                double y = pad + j*dy;
                for(int k = 0; k < cols; k++) {
                    double x = pad + k*dx;
                    int index = j*cols + k;
                    Color color = (index % 2 == 0) ? Color.blue
                                                   : colors[count++];
                    if(count > 3) count = 0;
                    g2.setPaint(color);
                    g2.fill(new Ellipse2D.Double(x, y, dx, dy));
            // Draw grid.
            g2.setPaint(Color.red);
            for(int j = 0; j <= rows; j++) {
                double y = pad + j*dy;
                g2.draw(new Line2D.Double(pad, y, w-pad, y));
            for(int j = 0; j <= cols; j++) {
                double x = pad + j*dx;
                g2.draw(new Line2D.Double(x, pad, x, h-pad));
        private JPanel getContent() {
            overlayComponent = new OverlayComponent(this);
            JPanel panel = new JPanel();
            OverlayLayout overlay = new OverlayLayout(panel);
            panel.setLayout(overlay);
            panel.add(overlayComponent);
            panel.add(this);
            return panel;
        private JPanel getLastPanel() {
            JCheckBox checkBox = new JCheckBox("magnify", true);
            checkBox.addActionListener(this);
            JPanel panel = new JPanel();
            panel.add(checkBox);
            return panel;
        public static void main(String[] args) {
            Magnifier test = new Magnifier();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(test.getContent());
            f.getContentPane().add(test.getLastPanel(), "Last");
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class OverlayComponent extends JComponent {
        Magnifier component;
        BufferedImage image;
        Point loc;
        boolean magnify = true;
        OverlayComponent(Magnifier m) {
            component = m;
            addMouseMotionListener(mma);
        public void setMagnify(boolean magnify) {
            this.magnify = magnify;
            repaint();
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            if(magnify) {
                if(image == null) {
                    int type = BufferedImage.TYPE_INT_RGB;
                    image = new BufferedImage(200, 200, type);
                    updateImage(new Point(getWidth()/2, getHeight()/2));
                int x = loc.x - image.getWidth()/2;
                int y = loc.y - image.getHeight()/2;
                g.drawImage(image, x, y, this);
        private void updateImage(Point p) {
            loc = p;
            Graphics2D g2 = image.createGraphics();
            g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                                RenderingHints.VALUE_INTERPOLATION_BICUBIC);
            double scale = 1.25;
            int x = (int)(scale*p.x) - image.getWidth()/2;
            int y = (int)(scale*p.y) - image.getHeight()/2;
            g2.translate(-x, -y);
            g2.scale(scale, scale);
            component.paint(g2);
            g2.dispose();
        private MouseMotionAdapter mma = new MouseMotionAdapter() {
            public void mouseMoved(MouseEvent e) {
                if(magnify) {
                    updateImage(e.getPoint());
                    repaint();
    }

  • Can You Change 3D Object Rotation Axis?

    Greetings. I have created a 3d object using repousse in Photoshop (CS5 extended). The original 2d image was created in Illustrator. I have found that in both Photoshop and After Effects, when I rotate this object in 3D space, either rotating the object itself or the camera, that the axis upon which it rotates is not the 3D center of the 3D object, but rather somewhere behind it. The result is that it is rotating like the moon rotates around the earth, rather than rotating in place, like an eye moving (rotating) in an eye socket; i want the eye ball to stay in one place, but see the pupil move up and down and all around like a real eye would.
    I have had no luck changing anchor points or positions of the object, even though I do have the X, Y, Z coordinates to manipulate.
    Can you tell me how to adjust this anchor point, or rotation axis point, or whatever this would be called?
    Thanks.

    Not really true...
    Yes it is limited but it can be altered.
    I believe that photoshops 3d center point is based on the world center and not the objects center. This means that it is possibloe to move the object to the world center to fix the rotation of your object.
    Open window>3d panel and just below the layers in that panel are some icon at the left side of the panel. Third icon down is the mesh tool, hold down the mouse button to bring up the pop up menu. Select the slide mesh tool. This will let you move the mesh adjust the pivot point.
    The problem that I see with this, is that it is trial by error, I do not see away to visually see where the world center is.
    Scratch that, at the bottom of the panel are three icons. The left of the three will turn on the ground plane. The plane does show world center.(where the red and green lines intersect is world zero)
    To understand which axis is which, sinse it does not specify.  Select the 3d pan tool, then in the top tool bar, type in a value one axis at a time to see which direction the object is moving. Then repeat the process for the rotate tool and see how the object rotates around each axis.

Maybe you are looking for

  • Forms-APP

    Experts:- 1.In automatic payment programme when we payment chek thru APP, at that time what type of payment forms we can use in the real times. 2.when we make the chek payment thru APP for  vendor ,How know the information to sent to the  Check to th

  • How do I delete an app in iCloud storage from my iPad?

    I'm trying to delete the gmail app from the I cloud so I can download it again fresh.  I want to change the primary gmail account on the app and I can't figure out how to do it, so I figured I'd just re-download the app and make sure I sign into the

  • Exchange 2010 Dynamic Distribution Group - RecipientContainer ignored

    Maybe someone will be able to help me with this...  I am trying to create DDGs for my organization but it seems the "RecipientContainer" is being ignored.  I have reorganized AD to include a top level OU called "Active Employees" and within that are

  • Looking for OD only binding script

    Hello everyone, after several weeks of trying different solutions we are stuck with trusted binding / OD binding in Deploy Studio. We've added several workstations to our computers and they are renamed by a script this works fine. The problem is that

  • Cutting videos with Quicktime

    I can play most video files using Quicktime but I can't always cut them. When I play mpeg files the commands for cut, copy, delete and paste are not in bold--in other words, they are not available. Can anyone help?