silikonanimal.blogg.se

Particle playground emit over distance
Particle playground emit over distance




  1. Particle playground emit over distance how to#
  2. Particle playground emit over distance code#
  3. Particle playground emit over distance plus#

Anyone have any ideas? Thanks in advance.Today’s Internet is a playground for hackers. I added a Slider Control to debug, and Diff_X and Diff_Y seem to be coming out all right, so I figure the problem is in the last line (apart from the typo in “radians”). In addition, the second part (the angle the cannon fires) seems to be acting weird.įirst of all, am I correct in thinking that the first line should actually be grabbing the position of the Cannon, and not the Cannon helper? With that difference, i’m still getting erratic angles. (where circler is the name of my null object).Īny thoughts on why particles are popping up in the frame? Could it be my other settings?

Particle playground emit over distance code#

My null Layer is animating around the frame (in a square – lower left, upper left, upper right, etc.) over the course of 20 sec, so the code I’m using is: While the first part (the expression for the cannon’s position) is giving me positions outside of the frame, I’m still having the problem of some particles being “born” within the frame. You just need to randomize your Cannon’s position so that it does not intrude into the layer’s boundaries (taking into account of the particle’s pixel size) and to ensure that the direction of the particles are centered, regardless of the Cannon’s position (but targeted towards an object, the Null Layer, centered in the composition).ī – the leader in customizable royalty-free animated backdropsįinally got a chance to try this out. I’m a lot short of time get an Expression going but hopefully Dan will drop by and sort things out. As long as the Cannon’s Direction is pointed towards center (or slightly off – depending on your taste – via a random/wiggle Expression method) using a Null Layer you shold be fine. To ensure that emitted particles are directed where they should be, you should be looking at the Cannon’s Direction.

Particle playground emit over distance plus#

Using Particle Playground’s Cannon parameter, you can actually emit particles outside of a layer’s boundaries PLUS control the number of particles emitted using the Particles per Second parameter. “Particle systems are dynamic, you cannot really control when a particle is born.” Should work perfectly for what you are trtying to do. New_Y=(variation) ĭ) Add som code to the direction of the cannonĪngle=readiansToDegrees(Math.atan2(diff_Y,diff_X)) Try the following:Ī) create a Null object and name it “Cannon Helper”.ī) Animate its position so it forms a closed path around your window.Ĭ) Add some code to your cannon position like that You need to have your path outside the frame all the time and that’s done most easily using keyframes. In your case just that might happen while your layers are jumping across the frame. Particle systems are dynamic, you cannot really control when a particle is born. If anyone can offer any help, suggest a different approach, or turn me towards a tutorial that might help, it would be great. While it seems to work (the cannon remains out of the frame, which is 720 x 534), (a) i know the code is super crude and (b) some of the particles are still “born” within the frame, despite the cannon being off screen. If this wasn’t enough, I would also ideally like the particles to randomly “die” (disappear). – if the cannon is off frame right, it should shoot leftish).

Particle playground emit over distance how to#

The problem I’m facing, is how to create expressions that (a) randomly position the Particle Playground’s cannon just outside of the frame (the birds need to fly in from random “elsewheres”) and (b) control the cannon’s direction so it generally fires into the frame (i.e. Ultimately, I’m trying to create an overhead scene with many birds (the particles) randomly flying (crisscrossing) through the frame (picture the original Legend of Zelda meets Hitchcock’s Birds). So I’m probably biting off more than I can chew, but I’m trying to learn the Particle Playground and expressions at the same time.






Particle playground emit over distance