Highlighted

Particles to start when mask hits

New Here ,
Nov 06, 2018

Copy link to clipboard

Copied

Hi! I've been trying to make something similar to this video : https://www.youtube.com/watch?v=KAQWzHokZXg

Titanic - My Heart Will Go On (PianoFX Cover) - YouTube

I've done a particular preset to my video, which I'd like to start when the mask hits the keylighted keys.. If that make sense. I'm kind of new to after effects...

Thanks in advance

Adobe Community Professional
Correct answer by Rick Gerard | Adobe Community Professional

When you send a screenshot it is important to reveal the layers that are giving you problems. If we can not see what you have done to the layers giving you problems a screenshot is almost completely useless. Press the U key twice and post another screenshot.

I think you are asking for a way for the boundary of a mask to trigger a particle. That's possible but involves an expression that samples pixels and turns the emitter on and off.

I looked at the Particles with synthesia and that workflow doesn't make much sense to me either. The workflow is a lot more complex than it needs to be. The entire project could be simplified and there would be very little to do but just adjust the position of some sample layers. Here is my approach.

If I already had a layer generating the "piano roll" I would turn the particle emitter on and off by sampling the color of the piano roll and using an if statement to control the emitter.

You mentioned Particular so here's how the comp would be set up.

  1. name the Piano Roll layer "Piano Roll"
  2. I would add a narrow spotlight to the comp to use as an Emitter.
  3. To the Intensity of the spotlight I would add this expression:
    target = thisComp.layer("Piano Roll");
    sample = position;
    point = [sample[0], sample[1]];
    sw = target.sampleImage(point, radius = [.5, .5], postEffect = true, t = time)[1];
    if (sw > .5) {100} else [0];
  4. tie the point of interest for the spotlight "Emitter" to the position with this expression:
    p = transform.position;
    [p[0], p[1]- 400, p[2]]]
  5. Set up the emitter in Particular to use lights
  6. Position the first light over the farthest left stripe on the Piano Roll layer with Z position set to zero to keep things simple
  7. Duplicate the lights as many times as you need to sample all of the bars and adjust the X position of each light as needed

There you go. There's not much to making Particular start and stop a particle stream based on the color values of a sample layer. Here's a screenshot with most of the modified properties of the layers revealed. I just used a bit of your screenshot for the footage and got the piano roll to move by masking, animating position, and pre-composing.

Screenshot_2018-11-08 11.12.15_Tr7UxY.png

Just in case you have problems here's the project and a CC 2014 version in case you are not using the latest version of AE:

PianoRoll.zip

Dropbox - PianoRoll (14.x).aep

If your browser adds a TXT extension to the AEP you can just delete it.

Making the keys light change color and turning on the glow lighting effect could be controlled with the same sample expression method.

Views

1.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Particles to start when mask hits

New Here ,
Nov 06, 2018

Copy link to clipboard

Copied

Hi! I've been trying to make something similar to this video : https://www.youtube.com/watch?v=KAQWzHokZXg

Titanic - My Heart Will Go On (PianoFX Cover) - YouTube

I've done a particular preset to my video, which I'd like to start when the mask hits the keylighted keys.. If that make sense. I'm kind of new to after effects...

Thanks in advance

Adobe Community Professional
Correct answer by Rick Gerard | Adobe Community Professional

When you send a screenshot it is important to reveal the layers that are giving you problems. If we can not see what you have done to the layers giving you problems a screenshot is almost completely useless. Press the U key twice and post another screenshot.

I think you are asking for a way for the boundary of a mask to trigger a particle. That's possible but involves an expression that samples pixels and turns the emitter on and off.

I looked at the Particles with synthesia and that workflow doesn't make much sense to me either. The workflow is a lot more complex than it needs to be. The entire project could be simplified and there would be very little to do but just adjust the position of some sample layers. Here is my approach.

If I already had a layer generating the "piano roll" I would turn the particle emitter on and off by sampling the color of the piano roll and using an if statement to control the emitter.

You mentioned Particular so here's how the comp would be set up.

  1. name the Piano Roll layer "Piano Roll"
  2. I would add a narrow spotlight to the comp to use as an Emitter.
  3. To the Intensity of the spotlight I would add this expression:
    target = thisComp.layer("Piano Roll");
    sample = position;
    point = [sample[0], sample[1]];
    sw = target.sampleImage(point, radius = [.5, .5], postEffect = true, t = time)[1];
    if (sw > .5) {100} else [0];
  4. tie the point of interest for the spotlight "Emitter" to the position with this expression:
    p = transform.position;
    [p[0], p[1]- 400, p[2]]]
  5. Set up the emitter in Particular to use lights
  6. Position the first light over the farthest left stripe on the Piano Roll layer with Z position set to zero to keep things simple
  7. Duplicate the lights as many times as you need to sample all of the bars and adjust the X position of each light as needed

There you go. There's not much to making Particular start and stop a particle stream based on the color values of a sample layer. Here's a screenshot with most of the modified properties of the layers revealed. I just used a bit of your screenshot for the footage and got the piano roll to move by masking, animating position, and pre-composing.

Screenshot_2018-11-08 11.12.15_Tr7UxY.png

Just in case you have problems here's the project and a CC 2014 version in case you are not using the latest version of AE:

PianoRoll.zip

Dropbox - PianoRoll (14.x).aep

If your browser adds a TXT extension to the AEP you can just delete it.

Making the keys light change color and turning on the glow lighting effect could be controlled with the same sample expression method.

Views

1.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Enthusiast ,
Nov 06, 2018

Copy link to clipboard

Copied

Not sure on the particular setup of your project, but-

The simplest way is just by hand- slide the Particle layer's in point to the frame contact is made.

If it were me I'd set up each key's animation first, then slide the layers along the timeline for timing. ( Pre-composing will make them reusable as well )

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Engaged ,
Nov 06, 2018

Copy link to clipboard

Copied

Hi, this should help:

Particles with synthesia

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
New Here ,
Nov 07, 2018

Copy link to clipboard

Copied

Hi! Thank you, it helped alot! However, the particles seem to emit all over the mask. Is it possible for the particles to emmit once the green hits the mask?  

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Engaged ,
Nov 07, 2018

Copy link to clipboard

Copied

Sorry, I don't understand what you mean? The particles should only emit when the green hits the mask. Have you read the whole thread and is his final result not what you are experiencing?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Enthusiast ,
Nov 07, 2018

Copy link to clipboard

Copied

Are you working with 2 seperate layers? Your "mask" (i'm assuming the shape) and your particle effect should be two seperate entities...

( a screenshot would help)

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
New Here ,
Nov 08, 2018

Copy link to clipboard

Copied

Hi again!

I've been trying to follow your tutorial, but I seem to be missing something.. Now the particles aren't showing at all. Here's a screenshot of it.

Skärmavbild 2018-11-08 kl. 17.42.16.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Nov 08, 2018

Copy link to clipboard

Copied

When you send a screenshot it is important to reveal the layers that are giving you problems. If we can not see what you have done to the layers giving you problems a screenshot is almost completely useless. Press the U key twice and post another screenshot.

I think you are asking for a way for the boundary of a mask to trigger a particle. That's possible but involves an expression that samples pixels and turns the emitter on and off.

I looked at the Particles with synthesia and that workflow doesn't make much sense to me either. The workflow is a lot more complex than it needs to be. The entire project could be simplified and there would be very little to do but just adjust the position of some sample layers. Here is my approach.

If I already had a layer generating the "piano roll" I would turn the particle emitter on and off by sampling the color of the piano roll and using an if statement to control the emitter.

You mentioned Particular so here's how the comp would be set up.

  1. name the Piano Roll layer "Piano Roll"
  2. I would add a narrow spotlight to the comp to use as an Emitter.
  3. To the Intensity of the spotlight I would add this expression:
    target = thisComp.layer("Piano Roll");
    sample = position;
    point = [sample[0], sample[1]];
    sw = target.sampleImage(point, radius = [.5, .5], postEffect = true, t = time)[1];
    if (sw > .5) {100} else [0];
  4. tie the point of interest for the spotlight "Emitter" to the position with this expression:
    p = transform.position;
    [p[0], p[1]- 400, p[2]]]
  5. Set up the emitter in Particular to use lights
  6. Position the first light over the farthest left stripe on the Piano Roll layer with Z position set to zero to keep things simple
  7. Duplicate the lights as many times as you need to sample all of the bars and adjust the X position of each light as needed

There you go. There's not much to making Particular start and stop a particle stream based on the color values of a sample layer. Here's a screenshot with most of the modified properties of the layers revealed. I just used a bit of your screenshot for the footage and got the piano roll to move by masking, animating position, and pre-composing.

Screenshot_2018-11-08 11.12.15_Tr7UxY.png

Just in case you have problems here's the project and a CC 2014 version in case you are not using the latest version of AE:

PianoRoll.zip

Dropbox - PianoRoll (14.x).aep

If your browser adds a TXT extension to the AEP you can just delete it.

Making the keys light change color and turning on the glow lighting effect could be controlled with the same sample expression method.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
New Here ,
Oct 04, 2019

Copy link to clipboard

Copied

screenshot.PNGHey Great content man!

I tried your method for a week now but i cant get it to work.

I added a screenshot to this comment could you maybe tell me where the mistake is?

Thanks in advance! 

                                           -Tom-screenshot.PNG

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Fabian98 LATEST
New Here ,
Apr 16, 2020

Copy link to clipboard

Copied

Hey!

Did you guys manage to make it work? The answer is really complicated and I don't understand everything.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...