v10.0 (2012)
texture
UV プロパティによって参照される特定のコンポーネントを固定します。 固定されたコンポーネントは UVUnfold 機能によって使用され、独自のマーカを使用して Texture Editor 内に表示されます。 PinUVComponents は、UV プロパティとコンポーネント インデックスのリストを入力として取得します。
PinUVComponents( UVProp, UVComponents ); |
| パラメータ | タイプ | 詳細 |
|---|---|---|
| UVProp | Object Name または UVProperty オブジェクト | UV Property の名前またはオブジェクト |
| UVComponents | Integer インデックスの配列 | 固定するコンポーネントのインデックス |
' Set up a grid with a texture and an XY projection.
CreatePrim "Grid", "MeshSurface"
CreateProjection "grid", , siTxtDefaultPlanarXY, , "Texture_Projection"
BlendInTextureLayers , , 1, True, siReplaceAndNoBlendInTextureLayers
SetDisplayMode "Camera", "texturedecal"
SelectObj "grid.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection"
' Pin components 1, 10, 20, 30
set uvprop = Selection(0)
PinUVComponents uvprop, Array(1, 10, 20, 30)
' Check the pinned component indices with the UVProperty object
componentIndices = uvprop.PinComponentArray
for i = lbound( componentIndices ) to ubound( componentIndices )
logmessage "Index: " & componentIndices(i)
next
|