Description
Translates texture coordinate elements
Scripting Syntax
TranslateUVW( InputObjs, TextureProjection, [X], [Y], [Z], [Delta], [AxesFilter], [SplitLocalComponents] )
Parameters
|
Parameter |
Type |
Description |
|
InputObjs |
List of objects or components to translate. Default Value: Selected elements |
|
|
TextureProjection |
Texture projection to modify. |
|
|
X |
U position Default Value: 0.0 |
|
|
Y |
V position Default Value: 0.0 |
|
|
Z |
W position Default Value: 0.0 |
|
|
Delta |
Specifies whether the translation is relative or absolute Default Value: siRelative Possible Values: • siRelative: Translation is relative to existing position • siAbsolute: Translation specifies an absolute position |
|
|
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 |
|
|
SplitLocalComponents |
If true, translate the sample points individually. Default Value: False |
Examples
VBScript Example
' This example creates grid and applies a texture on it. It then modifies a subset of its uvw coordinates ' by translating them 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" TranslateUVW "grid.sample[108-115,140-147]", "grid.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection", -0.375, 0.375, 0, siRelative , siUVW
See Also
Autodesk Softimage v7.5