I have this code:
proc test(){
string $motionPath, $curve[], $n[];
$curve = ls -sl;
$n = sphere;
pathAnimation -fractionMode true -follow 0 -c $curve[0] $n[0];
}
If I execute und undo it, the sphere created from this proc, is not deleted.
But this code works correctly:
proc test(){
string $motionPath, $curve[], $n[];
$curve = ls -sl;
$n = sphere;
}
Where is a problem?
in my experience, maya has been getting worse at undoing the actions of scripts. sometimes, maya just won't undo certain things. And i don't think there's a lot you can do about it. even doing things within maya, like constrain an object to another, and hit undo. the constraint node isn't deleted... a bit dodgy.