Hi All
I am experimenting with MEL driven particles. Nothing complex, its more to learn how to apply what I am learning in my mechanics lessons to Maya.
I have an expression that follows a simple path defined by a sin(time) function and then at certain values of the function creates some cubes which should be moved to the position at which that value was produced.
When I run it though I get this runtime error on the move line.
The cubes are created but not moved.
// Error: line 21: Error while parsing arguments. //
// Error: An execution error occurred in the runtime before dynamics expression for basePartShape. //
Here is the expression
$tsin = sin(time);
$t = $tsin*20;
vector $pPos = <>;
basePartShape.position = <>;
$pPos = basePartShape.position;
print( "Position" + $pPos + "\n");
print( "$t _ " + $t + "\n");
print("Sin(time)" + $tsin + "\n");
print ("\n pPos x" + $pPos.x + " \n");
if (($tsin <= 0.9) && ($tsin >= 0.8)) {
print("\n TRUE \n");
} else {
print("\n FALSE \n");
}
if (($tsin <= 0.9) && ($tsin >= 0.8)) {
//particle -p $pPos;
polyCube;
move -a $pPos;
}
Does anyone have any ideas about this?
Thanks
Dave