Aikiman
09-24-2009, 09:11 PM
Hey ppl,
Im attempting to force the output value of a setRange node into a couple of per particle attributes and getting some but not perfect success here. Using the following code..
int $setRangeX = `getAttr setRange1.outValueX`;
vector $pos = position;
setParticleAttr -at position -vv ($pos.x) ($setRangeX) ($pos.z) curve1ParticleShape.pt[$setRangeX];
The good part is that it works on position but not on a per particle level. All the particles end up in the same worldPosition whereas as I want the setRange to decide which particle to affect also.
Im attempting to force the output value of a setRange node into a couple of per particle attributes and getting some but not perfect success here. Using the following code..
int $setRangeX = `getAttr setRange1.outValueX`;
vector $pos = position;
setParticleAttr -at position -vv ($pos.x) ($setRangeX) ($pos.z) curve1ParticleShape.pt[$setRangeX];
The good part is that it works on position but not on a per particle level. All the particles end up in the same worldPosition whereas as I want the setRange to decide which particle to affect also.
