RotateUVW

Description

Rotates texture coordinate elements

Scripting Syntax

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

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 rotation in degrees.

Default Value: 0.0

Y

Double

V rotation in degrees.

Default Value: 0.0

Z

Double

W rotation in degrees.

Default Value: 0.0

Delta

siDeltaMode

Specifies whether to rotate the object a relative or absolute amount

Default Value: siRelative

Possible Values:

siRelative: Rotation is relative to existing rotation

siAbsolute: Rotation specifies an absolute orientation

AxesFilter

siUVWAxesFilter

Determines which of the u,v,w arguments are valid

Default Value: siUVW

Possible Values:

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 rotation, otherwise the center of geometry of the sample points is used.

Default Value: False

PivotU

Double

The U coordinate of the pivot arround which the rotation will be made.

Default Value: 0.0

PivotV

Double

The V coordinate of the pivot arround which the rotation will be made.

Default Value: 0.0

PivotW

Double

The W coordinate of the pivot arround which the rotation will be made.

Default Value: 0.0

AspectRatio

Double

The aspect ratio (x resolution/y resolution) of the image for which the UVs are being used. If specified, the command performs a scaling to compensate for the aspect ratio.

Default Value: 1.0

Examples

VBScript Example

' This example creates grid and applies a texture on it. It then modifies a subset of its uvw coordinates
' by rotating them 45 degrees.
NewScene
CreatePrim "Grid", "MeshSurface"
SetDisplayMode "Views.ViewA.TopCamera", "textured"
CreateProjection "grid", siTxtPlanarXZ, siTxtDefaultPlanarXZ, , "Texture_Projection"
SIApplyShaderToCnxPoint "Image", "Sources.Materials.DefaultLib.Scene_Material.Phong.diffuse"
RotateUVW "grid.sample[108-115,140-147]", "grid.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection", 0, 0, 45, siRelative

See Also

TranslateUVW

ScaleUVW



Autodesk Softimage v7.5