View Full Version : Converting AimPositionto Rotation?

12 December 2011, 10:38 AM

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,>>;

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.

CGTalk Moderation
12 December 2011, 10:38 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.