// Error: An execution error occurred in the creation expression... SOLVED
I am using the expression below but I get this error when I run it I get this: // Error: An execution error occurred in the creation expression for particleShape1. does anybody know what could be causing this or a way to fix it...?
particleShape1.aimUp = <<0,1,0>>;
particleShape1.randomRotationY = rand(360);
vector $p = particleShape1.position;
vector $normal = `nearestPointOnMesh -ip ($p.x) ($p.y) ($p.z) -normal -q pPlane1`;
particleShape1.aimDir = $normal;
float $rotx = rad_to_deg( atan2( ($normal.z), ($normal.y) ) );
float $rotz = rad_to_deg( asin( -($normal.x) ) );
particleShape1.rotationPP = << $rotx, particleShape1.randomRotationY, $rotz >>;
particleShape1.customIndex = 0;
Last edited by dustykhan; 05-08-2012 at 12:07 PM.