I have tried to use a normal expression of the type:
Code:
vector $position = `nParticle -at worldPosition -id 0 -q targetParticleShape`; loc.translateX = $position.x; loc.translateY = $position.y; loc.translateZ = $position.z;
Code:
vector $partPos = targetParticleShape.position; float $xPos = $partPos.x; float $yPos = $partPos.y; float $zPos = $partPos.z; loc.translateX = $xPos; loc.translateY = $yPos; loc.translateZ = $zPos;
Basically if I pause the sim and evaluate the particle position query it comes out as a different value as the current translate of the locator. It must be possible to make these equal.
Any thoughts?