Effects on effects

This may be a metaphysical question, but is there a way to set effects on effects ?
I was playing around with Reflection and was trying to created a blurred reflection, but this does not seem to be as straightforward as I might have thought.
Chaining effects together using setInput did not work for me because I only want to blur the reflection, not the node.

In general setInput is the way to go to apply effects on effects, but in your case you want to apply an effect on only a partial area of the effected node, so setInput doesn't really work.
The code below will work in some limited cases.
This solution is probably not what you are really looking for because it is a bit clunky in implementation and limited in it's possible uses, but I don't know of a better way to accomplish the effect you desire short of creating your own effect - e.g. An EffectClip effect which limits the area that subsequent effects apply to.
Custom effects might be realizable now that more of the JavaFX code has been open sourced.
General strategy is:
// construct a reflected label to be displayed in the scene.
// show the reflected label on the stage.
// snapshot the reflected part of the label to an image.
// blur the reflected part of the label.
// place the original label (now without it's original reflection)
// in a VBox together with it's blurred reflection.
// replace the original reflected label with the blurred reflected version.
import javafx.application.Application;
import javafx.geometry.Bounds;
import javafx.geometry.Rectangle2D;
import javafx.scene.Scene;
import javafx.scene.SnapshotParameters;
import javafx.scene.control.Label;
import javafx.scene.effect.BoxBlur;
import javafx.scene.effect.Reflection;
import javafx.scene.image.ImageView;
import javafx.scene.image.WritableImage;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class InReflection extends Application {
  @Override public void start(Stage stage) {
    // construct a reflected label to be displayed in the scene.
    Label label = new Label("The mirror crack'd from side to side");
    label.setStyle("-fx-font-size: 40px; -fx-font-style: italic;");
    label.setEffect(new Reflection());
    // show the reflected label on the stage
    StackPane layout = new StackPane();
    layout.getChildren().setAll(label);
    stage.setScene(new Scene(layout, 800, 200));
    stage.show();
    // snapshot the reflected part of the label to an image.
    SnapshotParameters params = new SnapshotParameters();
    Bounds effectiveBounds = label.getBoundsInParent();
    params.setViewport(new Rectangle2D(effectiveBounds.getMinX(), effectiveBounds.getMinY() + effectiveBounds.getHeight() * 2 / 3, effectiveBounds.getWidth(), effectiveBounds.getHeight() * 1 /3));
    WritableImage image = label.snapshot(params, null);
    // blur the reflected part of the label.
    ImageView reflectedView = new ImageView(image);
    reflectedView.setEffect(new BoxBlur());
    // place the original label (now without it's original reflection)
    // in a VBox together with it's blurred reflection.
    VBox blurReflectedLabel = new VBox();
    label.setEffect(null);
    blurReflectedLabel.getChildren().setAll(label, reflectedView);
    blurReflectedLabel.setMinSize(Label.USE_PREF_SIZE, Label.USE_PREF_SIZE);
    blurReflectedLabel.setPrefSize(effectiveBounds.getWidth(), effectiveBounds.getHeight());
    blurReflectedLabel.setMaxSize(Label.USE_PREF_SIZE, Label.USE_PREF_SIZE);
    // replace the original reflected label with the blurred reflected version.
    layout.getChildren().setAll(blurReflectedLabel);
  public static void main(String[] args) { launch(args); }
}

Similar Messages

  • Can't find zoom effect under effects video transition.

    I'm using V6.0.5 for Mac. I wanted to use zoom effect on a movie clip but can't find the zoom effect under Effects > video transition tab. I dunno what's wrong.

    This was corrected in I believe CC 2014.
    It wasn't really 'corrected' as much as the Windows version was intentionally hobbled.  (Blasphemy!)

  • Theres no effects in effects tab at the top

    There arent any effects in the effect tab at the top of affter effects it just has matte,last effect,remove effect and effect controls.

    Well in my menu effects there is only effect controls,Last effect,remove all and matte. And whats the Render engine?
    I am using Cs5
    There are also 2 warning when i open up after effects:
    Metadata browser is missing
    You have at least one output module template that refers to a missing output plug-in.  Please check your Output Module Templates.
    It also try to install "file formats and effects" but never finishes and tell me to restart after effects for it to take effect but nothing happens and it start the process above again.

  • Any way of temporarily switching off third party effects in Effects List?

    I have a load of third party effects and the makers' names are cluttering up the Effects List when sometimes I just want to see FCP X's original shipped effects.
    I know I can physically remove the effects but that involves shutting down FCP X.
    Is there any way of quickly "switching" them on or off?
    I very much doubt it but would be very pleased if there is a way.
    I know that by not selecting the makers' names I will not see the effects but what I want to do is temporarily get rid of the makers' names in the list.

    This tool from Digital Rebellion http://www.digitalrebellion.com/promaintenance/ but it is not cheap. Has many functions for FCPX, in my opinion a must have.

  • Motion effects in effects panel gone

    It seems like somehow the Motion effects in my effects panel have dissapeared.
    Any one knows how to fix this? It's weird that it would even be possible to remove this function, since it's a frequently used tool.
    I'm using Adobe Premiere CS5
    Hope to hear from you guys...

    I think i know what happend.
    I clicked remove all effects on the timeline-clips.
    But I still don't know the solution, any one?
    When inserting a new clip, the motion button effect is back...
    Screenshot:

  • After Effects HD Effects

    HI:
    I need to purchase a workstation that allow me to make Visual effects in After Effects with footage from HD SR 4:4:4. I will recieve dpx sequences, I will make the effects and I will deliver DPX or Tif sequence with the effect done.
    If I am not wrong each DPX frame will be between 12 and 15 MB/s.
    I need to know if this workstation I am thinking is OK for that.
    QuadCore
    8gb or 16gb of RAM memory
    Nvidia Quadro FX 1500.
    1 PC standart monitor 21'
    Windows XP 64Bits
    1 PC monitor that allow me to reach 1920x1080 preview.
    Since AFter effects is not a real time software, do I really need to have a RAID storage that deliver 450MB/s of effective transfer rate to have real time playback?
    Wouldn't it be more important to have lots of RAM memory like 16gb to load large video previews in real time ?
    Thanks to all
    Andrew

    I don't quite follow. I think you are over-simplifying and misinterpreting things. First off, the length of a RAM preview is not only determined by the resolution, but also by the processing bit-depth. Previews can be quite a bit longer than 5 sec if run at 8bpc instead of 16bpc or 32bpc.
    Secondly: Everyone uses proxies! They all do. Even realtime systems such as flame* merely live by using lower-res placeholders in many situations or lowering the actual on-screen render resolution. In addition, they simply pre-render a lot, which is only logical, considering that the required processing would otherwise prevent realtime playback anyways, regardless of available other resources. It really boils down to those systems rendering the frame and storing it to disk rather than doing RAM previews.
    The only thing that really makes a difference is that these systems can do this to some degreee in an automated fashion and as a background process while still doing work in the foreground. That's probably the part where AE is lame, but then again you can always buy NucleoPro to get this functionality to some extent.
    As an last item, it also comes down how you understand to use your program. Obviously AE has a disk cache, but of course it won't be of any use if you are constantly invalidating it by doing all your work in one big 500 layer comp. Therefore be smart: pre-compose! If the key lives in its own comp, it will only be rendered once and then cached to disk.
    As for the rest - at some point correctly rendering everything is inevitable for screening purposes. You simply cannot expect to preview your work and get final approval on your workstation, regardless how perfectly it may be calibrated to match the final output.
    So to conclude: You pretty much only need to establish a workflow that allows you to take advantage of your hardware resources. Get a hellishly fast RAID, use pre-composing in a sensible manner, have a decent graphics card andm ake use of pre-composing and, if you wanan afford it, NucleoPro's features. With that, you can much more rely on playback from scratch disks rather than spending endless hours for RAM previews and worrying about that they always seem to not last long enough.
    Mylenium

  • After Effects Transform Effect  is there something similar in Motion?

    Is there a way to something similar to the AE transform effect to offset the motion caused by the displace filter.
    Example here:
    http://www.videocopilot.net/tutorial/disintegration/
    Starting at time 8:06
    Thanks
    Andrew

    Interesting tutorial, thanks!
    Here's a quickie Motion version covering the basic concepts they use. I didn't have a texture handy and I wanted this to be self contained, so I used the Cloud generator. I animated the gradient in a gradient generator to get the wipe, substituted Gradient Colorize for "Colorama", Underwater filter for "Turbulent Displace", used behaviors instead of keyframes, etc...
    I hope this gets you started:
    Disintegrator Movie.
    and the Project.
    come back with any questions...
    Patrick

  • The Lightsaber Effect - After Effects CC

    Hello, my name is Jay,
    And I am a YouTuber, and at the moment I am trying to make a short video on a lightsaber fight, but the only way I know how to do it
    in After Effects is track it frame per frame, and in Premiere Pro CC, there is this little play button, and it does the motion tracking bit
    for you, but in After Effects, I don't know how to do it automatically, and I badly need to know how because if I make a 2 minute video
    on a lightsaber fight it would take about a year to motion track all of it, so I need answers please.
    Yours sincerely,
    - Jay Newman
    - JayDoesGames2014

    After Effects Help | Tracking and stabilizing motion
    Also, since your light sabers are undoubtedly going to be going behind things, you'll need info on rotoscoping.
    Although, all of that will only end in frustration unless you have a good foundation in the basics of using AE. Start here: Getting started with After Effects

  • Limiter Effect not effective

    Hi
    I applied a limiter effect to some clips after copying an adjusted one. Fine. They all have the adjustment. But the limit I applied (-5.5) doesn't seem to have much affect. The audio meter shows audio way above -5.5. And it's the exact same looking filter that worked so well in SoundTrack Pro.
    Any ideas?
    best
    elmer

    The bulk of the session should be backwards compatible, but some effects from newer releases will not load in earlier versions, as you've noted.  For compatible effects, you should see the correct parameter values, though the preset name used will not be displayed.  (Presets are a trigger to adjust parameter values, not stored as a parameter itself.)

  • Removing fx effects/adding effects

    The Help answer in iMovie says to use the "delete key" to remove effects; the Edit menu offers an "undo for special effects" (and a redo). Then there's returning a clip to its original state. The delete key does not remove the effects--which is best.
    We finally found that adding a special effect takes quite a bit of time (maybe 20-30 min)--we were being impatient at first and thinking it didn't work

    Hi mocalee - although I seem to recall an instance where, when I hit the 'Delete' key, the entire clip was removed instead of just the effect, I cannot now replicate that. The 'Delete' key does in fact remove the effect, even after Saving.
    Maybe there is a third-party effect that iMovie has trouble with - can you remember which effect it was? If it did not delete, what did happen? Nothing? The clip was deleted?

  • About the Video Effects under Effect Controls

    I've tried and can't figure it out...
    Is it possible to name the effects in the chain--not as a preset, I understand that--but to show some progressive logic to the flow of the effects to a specific sequence?
    Does that make any sense or do I need to try to re-phrase my question?
    TIA!

    I've requested this multiple times. Please do so, as well: Adobe Feature Request/Bug Report Form

  • Why does GarageBand reverse my vocal effects the "effected" part of the vocal is sounding as the main recorded part, and vice-versa.

    The "effected" part of the vocal (track echo) is sounding as if it's the main recorded part, and vice-versa. This is happening with every track that's recorded as a real instrument...
    Thanx!

    Among the alternatives not mentioned... Using a TiVo DVR, rather than the X1; a Roamio Plus or Pro would solve both the concern over the quality of the DVR, as well as providing the MoCA bridge capability the poster so desperately wanted the X1 DVR to provide. (Although the TiVo's support only MoCA 1.1.) Just get a third-party MoCA adapter for the distant location. Why the hang-up on having a device provided by Comcast? This seems especially ironic given the opinions expressed regarding payments over time to Comcast. If a MoCA 2.0 bridge was the requirement, they don't exist outside providers. So couldn't the poster have simply requested a replacement XB3 from the local office and configured it down to only providing MoCA bridging -- and perhaps as a wireless access point? Comcast would bill him the monthly rate for the extra device, but such is the state of MoCA 2.0. Much of the OP sounds like frustration over devices providing capabilities the poster *thinks* they should have.

  • Slide effect - change dinamically from to

    Hi,
    i try to build a slide effect (v1.5) for change dinamically
    the options 'from' and 'to', the scope is obtain a graphic
    interface for domotics application (eg. open sliding-windows to
    25%)
    i used this sample code, but the value in the effect not
    change:
    <input type="button" onclick="slide.options.to='25%';"
    value="Set To 25%">
    <input type="button" onclick="slide.options.to='50%';"
    value="Set To 50%">
    <input type="button" onclick="slide.options.to='75%';"
    value="Set To 75%">
    <input type="button" onclick="slide.options.to='100%';"
    value="Set To 100%">
    <input type="button" onclick="alert(slide.options.to);"
    value="CHECK">
    <input type="button" onclick="slide.start();"
    value="START">
    <div id="slidingWindows">
    <div>
    <div>img src="images/window.jpg" alt="" border="0"
    /></div>
    </div>
    </div>
    <script type="text/javascript">
    var slide = new Spry.Effect.Slide('slidingWindows',
    {duration: 2000, from: '0%', to: '25%', toggle: false,
    scaleContent:true});
    </script>
    Thanks!

    Hello,
    The percent values are translated in pixel values when the
    effect is instantiated. The result is cached and later used in each
    of the animators. If you manually set a new value the effect will
    ignore those values.
    Your problem is a little bit more complicated. You'll have to
    create a more complex script that will instantiate on the fly a new
    effect for each button when that button is clicked. Because when
    you instantiate an effect another effect it is possible to have run
    the percent value will be considered from the current size and not
    from the old original size. In this situation we'll have to also
    compute manually before effect instantiation the pixel value
    against the maximum one:
    <input type="button" onclick="slideIt('25%');" value="Set
    To 25%">
    <input type="button" onclick="slideIt('50%');" value="Set
    To 50%">
    <input type="button" onclick="slideIt('75%');" value="Set
    To 75%">
    <input type="button" onclick="slideIt('100%');" value="Set
    To 100%">
    <input type="button" onclick="alert(slide.options.to);"
    value="CHECK">
    <input type="button" onclick="slide.start();"
    value="START">
    <div id="slidingWindows">
    <div>
    <div><img src="images/window.jpg" alt="" border="0"
    /></div>
    </div>
    </div>
    <script type="text/javascript">
    function slideIt(to){
    var percent = parseInt(to, 10);
    // 300 is a random chose value.
    var pixels = to * 300 / 100;
    slide = new Spry.Effect.Slide('slidingWindows', {duration:
    2000, from: '0px', to: pixels + 'px', toggle: false, scaleContent:
    true});
    // the default value is 25%
    slideIt('25%');
    </script>
    Regards,
    Cristian

  • New to After Effects - need help with text manipulation!

    Hi all, I'm new to AE and this forum and I'm looking for some advice. I've been asked by the boss at work to create a short video clip, around 10-15 seconds, where text is displayed on the screen (3 words), after the few seconds, I want a 'forging' noise to happen and the final word in the text to be changed to another word and have a metallic effect applied, similar to the effect in this tutorial:
    Create Hot Metallic Text in After Effects - After Effects - macProVideo.com Hub
    Will this be difficult to do and do you guys think a complete beginner like myself can do it? I've got a lot of experience with the likes of PS, so I'm not too shy with Adobe software.
    Thanks,
    John

    johnster1991 wrote:
    Thanks for the advice, I appreciate it. So will it be difficult to have one word of text come onto the screen and overlay on top of the existing text, as if it's crashing over it? Any ideas on the steps I would use to do this? Thanks
    As you begin your career of using AE, you will change your vocabulary. Overlay will be replaced with spatial references like in front or behind.
    Designing text with surface styles like chrome or metal is not difficult. You can even import them from Photoshop if you have some PS chops or friends who can do it quickly.
    TEXT ONE can be easily replaced with TEXT TWO in any of dozens of different ways but to drop TWO in front of ONE is easy, you're just setting position keyframes. The finesse of animation, though, lies in the illusion of motion, exaggeration, overshooting and recoil. Your TWO could fall and squish and rebound and bounce or it could raise a dust cloud as it hits or it could make the camera wiggle. These are the things that separate simple key framing from animation and motion graphics.

  • Subscriber After Effects CC 2014 has the right to license the previous After Effects for free?

    I need license the After Effects CS5 for professional use, why do I need create templates for every type of user of After Effects, from CS5 to the CC.
    I know there's no way to sign Ae CS5 license, then Ae signing CC will have the freedom to also use the Ae CS5 with same license of CC?
    Or is there a way to license the Ae CS5?

    There are many versions between After Effects CS5 and the current version of After Effects CC. There are very few users still using the old After Effects CS5.
    The current version of After Effects---After Effects CC 2014.1 (13.1)---can open After Effects CS5 files just fine, so you can use the current version to take in work by people still on that very old version.

Maybe you are looking for