操作
テクスチャ座標のエレメントを移動します。
TranslateUVW( InputObjs, TextureProjection, [X], [Y], [Z], [Delta], [AxesFilter], [SplitLocalComponents] ); |
パラメータ | タイプ | 詳細 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
InputObjs | 文字列 | 移動するオブジェクトまたはコンポーネントのリスト。
デフォルト値: 選択されているエレメント |
||||||||||||||||
TextureProjection | 文字列 | 変更するテクスチャ プロジェクション | ||||||||||||||||
X | ダブル | U 座標
デフォルト値: 0.0 |
||||||||||||||||
Y | ダブル | V 座標
デフォルト値: 0.0 |
||||||||||||||||
Z | ダブル | W 座標
デフォルト値: 0.0 |
||||||||||||||||
Delta | siDeltaMode | 移動が絶対的であるか相対的であるかを指定します。
デフォルト値: siRelative
|
||||||||||||||||
AxesFilter | siUVWAxesFilter | 引数 u、v、w のうちどれが有効であるかを判断します。
デフォルト値: siUVW
|
||||||||||||||||
SplitLocalComponents | ブール | True を指定すると、サンプル ポイントが個別に移動されます。
デフォルト値: 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 |