CycleUVW

カテゴリ

texture

詳細

UVW をポリゴンの周囲に沿ってサイクルします。

スクリプト構文

oReturn = CycleUVW( TextureProjection, SubComp, [Offset] );

戻り値

変更されたオブジェクトを戻します。

パラメータ

パラメータ タイプ 詳細
TextureProjection 文字列 ポリゴンの周囲に沿ってサイクルするテクスチャ プロジェクション
SubComp 文字列 サイクルするポリゴンまたはタグを付けたポリゴンのクラスタ
Offset Long ポリゴン UVW をサイクルするステップ数と方向

デフォルト値: 1

VBScript の例

' This example demonstrates how to Cycle UVs for an object.
NewScene , false
SetDisplayMode "Camera", "textured"
' create the object, create a default planar XY projection for it and apply an image on it.
CreatePrim "Cube", "MeshSurface"
' generate unique UVs for the sphere
GenerateUniqueUVs "cube", "Texture_Projection"
SIApplyShaderToCnxPoint "Image", "Sources.Materials.DefaultLib.Material.Phong.diffuse"
msgbox "Click OK to run counter clock wise CycleUVW  "
' cycle the UVs of the object
CycleUVW "cube.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection", "cube.poly[LAST]", -1
msgbox "Click OK to run clock wise CycleUVW  "
CycleUVW "cube.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection", "cube.poly[LAST]", 1