well I'm not 100% sure because I can't run the scripts because there are some other procs missing (is there any reason why you have them as two separate scripts? couldn't it just be one script with the two procs in it?)
I've noticed that if $deltaY may not get set at all because if this:
if ($dist < $minDistance)
check fails then you will return an undefined $deltaY. You need initialise it to some value, even if it's 0.
It may have something to do with that.
On line 26 of that script aswell you call the name "accessibilty". If you plan on using this script again with other object etc then you should be passing that in as a paramter rather than hard coding it.
e.g.
global proc string myProc()
{
return `getAttr "myObject.tx"`;
}
this is better because you can use it on any object
global proc string myProc(string $myObject)
{
return `getAttr ($myObject + ".tx")`;
}
A
Technical Director - Framestore
Currently working on: Your Highness
IMDB