FORUMS: list search recent posts

Is it possible to connect PerParticle World Centroids to individual meshes in a particle cloud

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Adam Benson
Is it possible to connect PerParticle World Centroids to individual meshes in a particle cloud
on Jul 31, 2009 at 1:06:52 am

So, I've got an animation that I'm doing using the particle tool to create individual particles. I connect the world centroid of the single particle that I create to the transform of a mesh object; in this case a single letter of a set of words. Well, I've got a bunch of these to do, and it's going to get tedious... like "Time to write a script" tedious.
So, I used the particle tool to create a cloud of individual particles, in the hopes that I could write a script that would use PerParticle attributes to connect the individual world centroids to individual outside meshes.
In the end, each of these particles drives an individual letter around, swirling around until the particle's goal weight increases and brings all the letters to their proper places, and Ta-Da! Not the swirling crowd reveals well placed words.
So, simply, my question is this. Can you create a single cloud of particles, then create some PerParticle attribute that will take the centroid of each particle within the system and connect them to various individual meshes' transforms?
Any takers?
Thanks

Adam Benson
Visual Effects Artist/Musician/Sound Engineer/Editor
http://www.SleepDeprivedProductions.com
http://www.SleepDeprivedFilms.com


Return to posts index

Alvaro Castaneda
Re: Is it possible to connect PerParticle World Centroids to individual meshes in a particle cloud
on Jul 31, 2009 at 4:17:52 pm

Hi Adam

I've done this before a while ago, and yeah I used a script.

this is so damn easy in houdini :D that's why I love it, point level control.

anyway, I'll try to find that script.

cheers


----------------------
varomix - pixelEater
http://www.intelianimate.com


Return to posts index

Alvaro Castaneda
Re: Is it possible to connect PerParticle World Centroids to individual meshes in a particle cloud
on Jul 31, 2009 at 5:14:43 pm

Hi

I found the script, 2 years old :D

that one creates particles at each selected object, hope it works for you.

180_mixobjecttoparticlev001.mel.zip

my bad, the intention of this script was to instantiate a bunch of brick so, it doesn't parent the object to the particles just creates a particle at each center

Cheers

----------------------
varomix - pixelEater
http://www.intelianimate.com


Return to posts index


Alvaro Castaneda
Re: Is it possible to connect PerParticle World Centroids to individual meshes in a particle cloud
on Jul 31, 2009 at 6:18:26 pm

Hi

this can link the object to the particles position

float $pos[] = mix|mixShape.worldPosition;
box1.translateX = $pos[0];
box1.translateY = $pos[1];
box1.translateZ = $pos[2];



where mix is the particle name and box1 is the mesh to link

that might work

I couldn't get the direction right but that might work, I'll try to find the direction later. :D



----------------------
varomix - pixelEater
http://www.intelianimate.com


Return to posts index

Brendan Eddy
Re: Is it possible to connect PerParticle World Centroids to individual meshes in a particle cloud
on Aug 12, 2009 at 12:26:59 am

Hi,
Thanks for the awesome script!

The downloadable script you posted worked great but I'm afraid I'm not sure how to use the second script you posted. Do I source it as well or execute it with the box and mix selected?

I am a bit new to MEL so any explanation would be really appreciated.

Thanks!

Brendan Eddy
http://BrendanEddy.com


Return to posts index

Alvaro Castaneda
Re: Is it possible to connect PerParticle World Centroids to individual meshes in a particle cloud
on Aug 12, 2009 at 2:40:00 pm

select the particle, go to particleshape under per particle (array) Attributes
right click on Position and select create expression

the expression editor will open, there put the expression in the creation and in the run after dynamics sections

l8r

----------------------
varomix - pixelEater
http://www.intelianimate.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]