I was using closestPointOnMesh in a script to try and get UV values from 
particle positions and noticed some funniness with it. I get the same 
results if I set it up manually or use Constrain -> Closest Point

I create a polyPlane, delete history, and scale it some arbitrary amount.
Constraint -> Closest point (or connect plane.worldMesh[0] -> CPOM.inMesh; 
plane.worldMatrix[0] -> CPOM.inputMatrix).

The position output is correct, but the U and V values are not. the UV 
values only increment by 0.1.
If I freeze transforms on the plane, I get the correct outputs. 

Is there a different inputMatrix I can give it? Any ideas? I need to be 
able to scale the object I'm using this on and freezing transforms won't be 
an option.

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to