ScaleUVW

Description

Scales texture projection elements

Scripting Syntax

ScaleUVW( InputObjs, TextureProjection, [X], [Y], [Z], [Delta], [AxesFilter], [Pivot], [PivotU], [PivotV], [PivotW] );

Parameters

Parameter Type Description
InputObjs String List of objects or components to translate.

Default Value: Selected elements

TextureProjection String Texture projection to modify.
X Double U scaling

Default Value: 1.0

Y Double V scaling

Default Value: 1.0

Z Double W scaling

Default Value: 1.0

Delta siDeltaMode Whether to scale the object a relative to its current size or the geometry

Default Value: siRelative

Possible Values:

Description:

siRelative Scale is relative to exiting scale
siAbsolute Scale replaces existing scale
AxesFilter siUVWAxesFilter Determines which of the u,v,w arguments are valid

Default Value: siUVW

Possible Values:

Description:

siU Filter in U
siV Filter in V
siUV Filter in U & V
siW Filter in W
siUW Filter in U & W
siVW Filter in V & W
siUVW Filter in U & V & W
Pivot Boolean If true the specified pivot point is used for the scaling, otherwise the center of geometry of the sample points is used.

Default Value: False

PivotU Double The U coordinate of the pivot relative to which the scaling will be made.

Default Value: 0.0

PivotV Double The V coordinate of the pivot relative to which the scaling will be made.

Default Value: 0.0

PivotW Double The W coordinate of the pivot relative to which the scaling will be made.

Default Value: 0.0

Examples

VBScript Example

' This example creates grid and applies a texture on it. It then modifies a subset of its uvw coordinates

' by scaling them by a factor of one half in u and v.

NewScene

CreatePrim "Grid", "MeshSurface"

SetDisplayMode "Views.ViewA.TopCamera", "textured"

CreateProjection "grid", siTxtPlanarXZ, siTxtDefaultPlanarXZ, , "Texture_Projection"

SIApplyShaderToCnxPoint "Image", "Sources.Materials.DefaultLib.Scene_Material.Phong.diffuse"

ScaleUVW "grid.sample[108-115,140-147]", "grid.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection", 0.5, 0.5, 0, siRelative , siUVW

See Also

TranslateUVW RotateUVW