テクスチャ レンダリング
指定のオブジェクトのテクスチャ サポート オブジェクトを取得します。
oReturn = SIGetTextureUVDomains( InputObjs ); |
テクスチャサポートオブジェクトを含むXSICollectionを戻します。
' 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 |