help!!! how to define the position of one object in relation with a nurbs surface
I have several boxes and I need to get the Yvalue of one nurbs surface in the medium point of each box. Someone can help in how to script,.. how to read the position of my box in relation with that surface, to allow the program to read the value in that specific point of the surface (where my box is)
$ac = getAttr ("accesibility.cv["+$p+"]["+$i+"].yValue")
$ac is the Y value of the surface
$p is the position of the box (that is what I need to know how to define in relation with the surface)
$i is the position of the box in the other direction (that is working)
Thank you very much!!