Dimension (ControlPointCollection) *

Description

Returns the size of a collection in a particular direction. For a NurbsCurve use siUDirection.

Scripting Syntax

ControlPointCollection.Dimension( Direction )

C# Syntax

Int32 ControlPointCollection.Dimension( siNurbsDirection in_newVal );

Parameters

Parameter

Type

Description

Direction

siNurbsDirection

Direction of dimension required

Return Value

Integer

Examples

VBScript Example

set oRoot = Application.ActiveProject.ActiveScene.Root
set oGrid = oRoot.AddGeometry( "Grid","NurbsSurface")

cUControlPoints = oGrid.ActivePrimitive.Geometry.Surfaces(0).ControlPoints.Dimension( siUDirection )
cVControlPoints = oGrid.ActivePrimitive.Geometry.Surfaces(0).ControlPoints.Dimension( siVDirection )

LogMessage "grid has UV dimensions of " & cUControlPoints & "x" & cVControlPoints


Autodesk Softimage v7.5