' Create a sphere, add texture projection, and
' assign default image to scene's material:
oSphere = CreatePrim( "Sphere", "MeshSurface" )
CreateProjection oSphere, siTxtPlanarXY, siTxtDefaultPlanarXY
SIApplyShaderToCnxPoint "Image", "Sources.Materials.DefaultLib.Scene_Material.Phong.diffuse"
' Now flip horizontally the given polygons:
oFlipuvwOp = FlipUVW( oSphere & ".polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection", oSphere & ".poly[12,20,44,52]", 1 )
LogMessage "New Flip UVW operator: " & oFlipuvwOp
SelectGeometryComponents oSphere & ".poly[12,20,44,52]"
' View the results:
SetDisplayMode "Camera", "textured"
' Running this script should log the following:
' ---------------------------------------------
'INFO : "New Flip UVW operator: sphere.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection.Flipuvw"
|