View Full Version : Attaching Joints to Particles (particle positions?)

06 June 2008, 03:38 PM
This may sound a little weird, but can you attach more than just meshes/geometry to a particles (by way of instancing) ?

Like for instances joints or locators ?

What I like to do is create a simple dynamics simulation with a particle system and place geometry on the positions of each particle. Using the Instancer node I can detach the instanced geometry from it's emitter, but it appears are one large bulk of instaces combined together, instead of seperate instances.

So in other words, is there a way to use particle locations (position, rotation) in different ways that the "regular" way ?

Sorry if this sounds vague :) Thanks for any pointers/advice!

06 June 2008, 08:47 PM
Just for the sake of clarity, another idea would be to attach locators to position of each particle :)

That would be very cool - if that's possible I think I can figure out the rest. One of my colleagues (C++ coder) is able to replace locators with geometry.....

06 June 2008, 01:16 AM
something like this...

int $count = `particle -q -count particleShape1`;

for ($i = 0; $i < $count; $i++) {
float $loc[] = `particle -attribute position -id $i -q particleShape1`;
setAttr ("locator" + $i + ".translateX") $loc[0];
setAttr ("locator" + $i + ".translateY") $loc[1];
setAttr ("locator" + $i + ".translateZ") $loc[2];


CGTalk Moderation
06 June 2008, 01:16 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.