Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an nParticle object with 120k particles and a corresponding deforming mesh with 120k verts. I'm using the this creation expression to set the particles' RGB to the verts' XYZ.
float $meshVertPos[] = `pointPosition -w wobbleMesh.vtx[nParticleShape1.particleId]`;
nParticleShape1.rgbPP = <<$meshedColor[0],$meshedColor[1],$meshedColor[2]>>;
It works but the pointPosition command is really slowing things down, I then tried using 'getAttr' but it seems about the same. I was wondering if there's a more efficient way to do this, like if its possible access the vertex position directly without a command, like the way you can with transforms.
Solved! Go to Solution.