Its very easy in ICE. but you will have to have a map existing to write to as 
ICE cant generate Maps.

There is a get closest points node. Which returns an array of locations. If you 
just want one point, then the nearest will be the first in the array

so in ICE its a bit like this

OTHER OBJECT------GETCLOSESTPOINTS--------SELECT IN ARRAY (select the first, 
which is 0)--------GETDATA(weightmap.weights)--------SETDATA(this object’s 
weightmap that you have made to write it to)

If you freeze the ICE tree, its now permanent.

From: Martin Yara 
Sent: Friday, July 15, 2016 8:06 AM
To: [email protected] 
Subject: Get Closest Point in another geometry

Hi list, 

I'm trying to write a tool to snap to the closest points and copy their 
weights, so these points would have the same position and the same weights. But 
I can't find a method or property besides Geometry.GetClosestLocation, which 
gives me the location in the geometry, not the closest point.

My only idea would be to use the GetClosestLocation and then get the points 
from the polygon in that location and iterate between those points.

Is there any easier or direct way to do this?

I would try ICE but I'm don't know how to copy the weights with ICE, or if this 
is possible, or how to get the ICE information to use it to copy weights 
through scripting.

Thanks

Martin


--------------------------------------------------------------------------------
------
Softimage Mailing List.
To unsubscribe, send a mail to [email protected] with 
"unsubscribe" in the subject, and reply to confirm.
------
Softimage Mailing List.
To unsubscribe, send a mail to [email protected] with 
"unsubscribe" in the subject, and reply to confirm.

Reply via email to