View Single Post
# 6 03-11-2006 , 10:29 PM
Alan's Avatar
Moderator
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
if you want to get the distance from the pivot of the box to the point on the accessibilty surface then you need to subtract the two y components.
remember the thing I gave you gives you a World Space position NOT a UV position (you must supply UV coordinates to get teh world space position back)

float $accessibiltyHeight[] = `pointOnSurface -u $u -v $v`;
float $boxPos[] = `xform -q -ws -t $myBox`;

float $yHeight = $boxPos[1] - $accessibiltyHeight[1];

And don't confuse maya with Artificial Intelligence... they're really not the same thing at all...

user added image
A


Technical Director - Framestore

Currently working on: Your Highness

IMDB