v1.0
texture render
Creates a texture projection using an existing texture support.
ConnectToSupport( [InputObjs], PropertyName, [TextureSupport] ); |
Parameter | Type | Description |
---|---|---|
InputObjs | String | List of objects to connect.
Default Value: Selected objects |
PropertyName | String | Name for the new texture projection. Returns the actual name assigned. |
TextureSupport | String | Texture support to use to create projection. |
' This example demonstrates how to use the ConnectToSupport command. NewScene , false ' Create an object with a projection an a texture. CreatePrim "Sphere", "MeshSurface" CreateProjection "sphere", siTxtCylindrical, siTxtDefaultCylindrical, , "Texture_Projection" SIApplyShaderToCnxPoint "Image", "Sources.Materials.DefaultLib.Material.Phong.diffuse" Scale "Texture_Support", 3, 1, 3, siAbsolute, siPivot, siObj, siXZ, , , , , , , , 0 ' Create a second object CreatePrim "Torus", "MeshSurface" Translate "torus", 10, 0, 0, siAbsolute, siPivot, siObj, siX, , , , , , , , , , 0 ' Create a texture projection for the second object using the first object texture support ConnectToSupport "torus", "Texture_Projection", "Texture_Support" SetDisplayMode "Camera", "textured" |