SIGetTextureUVDomains

詳細

指定のオブジェクトのテクスチャ サポート オブジェクトを取得します。

スクリプト構文

oReturn = SIGetTextureUVDomains( InputObjs );

戻り値

テクスチャサポートオブジェクトを含むXSICollection を戻します。

パラメータ

パラメータ タイプ 説明
InputObjs 文字列 テクスチャ サポート オブジェクトを取得するオブジェクトのリスト

デフォルト値: 選択されたオブジェクト

VBScript の例

' This example demonstrate how to list the texture supports of an object. 

NewScene , false

CreatePrim "Sphere", "NurbsSurface"

' Create projections and texture supports for the object

CreateProjection "sphere", siTxtCylindrical, siTxtDefaultCylindrical, , "UVDomain1-Cylindrical"

CreateProjection "sphere", siTxtSpherical, , , "UVDomain2-Spherical"

CreateProjection "sphere", siTxtCubic, siTxtDefaultCubic, , "UVDomain3-Cubic"

' Log the name of the texture supports connected to the object:

set s = SIGetTextureUVDomains( "Sphere" )

if s.Count > 0 then

For i = 0 to s.Count-1

logmessage "Texture support name: " & s(i).name

Next

else

logmessage "Texture support not found"

end if

'Output of the above script:

'INFO : Texture support name: Texture_Support

'INFO : Texture support name: Texture_Support1

'INFO : Texture support name: Texture_Support2