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 |
List of objects or components to translate. Default Value: Selected elements |
|
|
TextureProjection |
Texture projection to modify. |
|
|
X |
U rotation in degrees. Default Value: 0.0 |
|
|
Y |
V rotation in degrees. Default Value: 0.0 |
|
|
Z |
W rotation in degrees. Default Value: 0.0 |
|
|
Delta |
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 |
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 |
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 |
The U coordinate of the pivot arround which the rotation will be made. Default Value: 0.0 |
|
|
PivotV |
The V coordinate of the pivot arround which the rotation will be made. Default Value: 0.0 |
|
|
PivotW |
The W coordinate of the pivot arround which the rotation will be made. Default Value: 0.0 |
|
|
AspectRatio |
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
Autodesk Softimage v7.5