Returns a list of weight values that are assigned to the control points of a surface. The number of weights returned will be equal to the number of control points in the U and V directions.
rhinoscriptsyntax.SurfaceWeights (object_id)
rhinoscript.surface.SurfaceWeights (object_id)
object_id |
Required. String or Guid. The object's identifier. |
List |
The weight values of the surface if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
surf = rs.GetObject("Select a surface")
if rs.IsSurface(surf):
weights = rs.SurfaceWeights(surf)
if weights:
for w in weights:
print "Surface control point weight value:", w