gunslinger
Hi 

So I have a simple pfxToArray setup currently displaying via an instancer. What I need to do next is two things 

1 - how can I add a random ID attribute to the instancer / array stack ? should I use a point node and randomly assign $W then into another arrayToDynArrays ?

2- Is it possible to take the final output and write out particles with these PP attributes ? I need to do this in order to feed a particle point cloud back into our pipe

thanks for any help


Reply 0 0
pshipkov
1. You can do that or you can sample noise texture using textureToArray.

2. Yes, you can do that. pipe the result point cloud you generate to a pointCloudToCurve node and then pipe this to the inputGeometry (or was it inputMesh attribute) of a nParticlesShape. This will auto-populate the shape with particles - that's a standard Maya thing. Not in front of Maya right now, so check the docs or examine the input attributes of the nParticles.

Then inside your particle shape you can use particle expressions to read any additional data you may need from the soup nodes. For example if you want to read a pp color from let's say point.outRgbaPP do this in the particle expression:
rgbPP = point1.ourRgbaPP;
simple as this.
Reply 0 0
Reply