deluxmilkman
12-02-2011, 09:38 AM
Hello
Im using Maya Instancer, and looking for a way to convert the AimPosition to Rotation.
I have a particle system set up and it works fine. The rotations of the instanced geometry are set by the AimPosition.
My particles rotation is set with the AimPosition. By default, there is no rotationPP nor worldRotationPP from which i could get the actual rotations of the instance.
How can I convert the AimPosition vector to my rotationPP vector that I can use in my deinstance routine to set actual rotations?
I have seen Aim Direction converted to Rotation.
$locPos= <<locator1.tx, locator1.ty, locator1.tz>>;
float $angBet[] = `angleBetween -euler -v1 1 0 0 -v2 ($locPos.x) ($locPosy) ($locPos.z)`;
nParticleShape1.instanceRotationPP= << $angBet[0], $angBet[1] , $angBet[2] >> ;
maybe something similar?
Thanks in advance.
Im using Maya Instancer, and looking for a way to convert the AimPosition to Rotation.
I have a particle system set up and it works fine. The rotations of the instanced geometry are set by the AimPosition.
My particles rotation is set with the AimPosition. By default, there is no rotationPP nor worldRotationPP from which i could get the actual rotations of the instance.
How can I convert the AimPosition vector to my rotationPP vector that I can use in my deinstance routine to set actual rotations?
I have seen Aim Direction converted to Rotation.
$locPos= <<locator1.tx, locator1.ty, locator1.tz>>;
float $angBet[] = `angleBetween -euler -v1 1 0 0 -v2 ($locPos.x) ($locPosy) ($locPos.z)`;
nParticleShape1.instanceRotationPP= << $angBet[0], $angBet[1] , $angBet[2] >> ;
maybe something similar?
Thanks in advance.
