GetUVFromNormalizedUV (NurbsSurface) *
Description
Returns the UV value equivalent to the inputed normalized UV values.
Note: This method uses output arguments. C# and some scripting languages (such as JScript and PerlScript) don't support arguments passed by reference. However, there is a alternate version of this method which is considered safe to use with C#, JScript and PerlScript: NurbsSurface.GetUVFromNormalizedUV2.
Scripting Syntax
NurbsSurface.GetUVFromNormalizedUV( UValueNormalized, VValueNormalized, UValue, VValue )
C# Syntax
NurbsSurface.GetUVFromNormalizedUV( Double in_dUValueNormalized, Double in_dVValueNormalized, Object& out_pdUValue, Object& out_pdVValue );Parameters
|
Parameter |
Type |
Description |
|
UValueNormalized |
The normalized UValue(0.0 to 1.0) from which we want the actual U Value. |
|
|
VValueNormalized |
The normalized VValue(0.0 to 1.0) from which we want the actual V Value. |
|
|
UValue [out] |
The actual U value. |
|
|
VValue [out] |
The actual V value. |
Examples
VBScript Example
set oRoot = Application.ActiveProject.ActiveScene.Root
set oSphere = oRoot.AddGeometry( "Sphere", "NurbsSurface" )
oSphere.ActivePrimitive.Geometry.Surfaces(0).GetUVFromNormalizedUV _
0.5, 0.5, UValue, VValue
LogMessage "The equivalent to the normalized UV: 0.5, 0.5 is U :" & _
UValue & " V: " & VValueAutodesk Softimage v7.5