Hi,
I'm trying to create a file with 3 columns being the position of the particles.
So far if I do this for particle ID "1" it works:
float $speck[] = getParticleAttr -at position -array true particleShape1.pt[1];
// Result: -1.297178 0.190271 0.777298 //
So to get this for every particle, so each line is the X Y Z position, I'm trying this but with no success:
for ($i =0; $i < 5; $i++)
{
float $speck[3] = `getParticleAttr -at position -array true particleShape1.pt[$i]`;
print $speck;
}
-0.1848040.153196-0.178653-0.2324440.0340950.139286-0.155550.0182010.189369
How can I obtain something like this:
X Y Z
X Y Z
X Y Z
and so on
because
{float $speck[3] = getParticleAttr -at position -array true particleShape1.pt[$i];
print ($speck + "/n");};
// Error: print ($speck + "/n");
// // Error: Illegal operation "+" on data of type float[]. //
Any idea?
Thanks