kill particles on special objects

add attr collisionGeometryIndex to you particle shape and :

 

int $idx = particleShape2.collisionGeometryIndex;

string $geoC[];
string $shape[];

if( $idx != -1 )
{

string $geoC[] = `listConnections particleShape2.collisionGeometry[$idx]`;
string $shape[] = `listConnections ( $geoC[0] + “.localGeometry” )`;
print( $shape[0] + “\n”);
if ($shape[0] == “killcube”) particleShape2.lifespanPP = 0;
}

download it here

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s