manipulation
Translates texture coordinate elements
TranslateUVW( InputObjs, TextureProjection, [X], [Y], [Z], [Delta], [AxesFilter], [SplitLocalComponents] ); |
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 position
Default Value: 0.0 |
||||||||||||||||
Y | Double | V position
Default Value: 0.0 |
||||||||||||||||
Z | Double | W position
Default Value: 0.0 |
||||||||||||||||
Delta | siDeltaMode | Specifies whether the translation is relative or absolute
Default Value: siRelative
|
||||||||||||||||
AxesFilter | siUVWAxesFilter | Determines which of the u,v,w arguments are valid
Default Value: siUVW
|
||||||||||||||||
SplitLocalComponents | Boolean | If true, translate the sample points individually.
Default Value: False |
' 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 |