View Full Version : Particle instanced geo: Unique id for each
object  10-30-2009, 11:56 AM  I've got an particle instance of
objects, and i'm trying shade them differntly (renderman for
maya).  The problem is, no particle data is transfered to the
geo instance, and each geo instance doesnt have a unique id
passed to the rib.  I've read somewhere that every object in
maya has a unique ID, how do i access this? If i could get a
random number for each object, i could use that to adjust shader
values.    11-02-2009, 05:26 AM Particles have their own unique
ID which can be queried using getParticleAttr -at particleId
particleShape1.pt[$x];  11-02-2009, 11:51 AM Cheers for the
reply.  I'm instancing geo onto particles using the instancer.
The particle ID isn't passed to the instanced object, so this
isnt much use unfortunately.  Ive got a hack work around, but I
was wondering if anyone had worked out a way of accessing either
a unique object ID per instanced geo, or passing the particle ID
to the object.  11-02-20