## NurbsSampleCollection.GetUVSamplingCoordinateArray

### Description

Returns an array of UVSamplingCoordinate values for all Sample.

### C# Syntax

    Object NurbsSampleCollection.GetUVSamplingCoordinateArray( Object, Object );

### Scripting Syntax

    oArray = NurbsSampleCollection.GetUVSamplingCoordinateArray( [Indices], [NurbsSurfaceIndex] );

### Return Value

Array

### Parameters

Parameter | Type | Description
--- | --- | ---
Indices | Array of Long | An array of NurbsSampleIndex.
NurbsSurfaceIndex | Long | If you get the NurbsSampleCollection from NurbsSurface.NurbsSamples it will use the NurbsSurface from which you requested it by default. If you get it from Geometry.Samples it will take the first surface by default.

### Examples

#### VBScript Example

    set oCube = ActiveSceneRoot.AddGeometry("Cube","NurbsSurface")

    set oNurbsSamples = oCube.ActivePrimitive.Geometry.surfaces(0).NurbsSamples

    aUVSamplingCoordinate = oNurbsSamples.GetUVSamplingCoordinateArray(Array(1))

    logmessage "The UV sampling coordiante of sample 1 is: " & aUVSamplingCoordinate(0) & " " & aUVSamplingCoordinate(1)