Description
Creates a new projection and shares an existing texture projection definition.
Scripting Syntax
ConnectToProjection( [InputObjs], PropertyName, [TextureProjection] )
Parameters
|
Parameter |
Type |
Description |
|
InputObjs |
List of objects to connect. Default Value: Selected objects |
|
|
PropertyName [in/out] |
Name for the new texture projection. Returns the actual name assigned. |
|
|
TextureProjection [in/out] |
Texture projection to share the definition with. |
Examples
VBScript Example
' This example demonstrates how to use the ConnectToProjection command. NewScene , false ' Create an object with a projection an a texture. CreatePrim "Sphere", "MeshSurface" CreateProjection "sphere", siTxtCylindrical, siTxtDefaultCylindrical, , "Texture_Projection" Scale "Texture_Support", 3, 1, 3, siAbsolute, siPivot, siObj, siXZ, , , , , , , , 0 SIApplyShaderToCnxPoint "Image", "Sources.Materials.DefaultLib.Material.Phong.diffuse" ' Create a second object CreatePrim "Torus", "MeshSurface" Translate "torus", 10, 0, 0, siAbsolute, siPivot, siObj, siX, , , , , , , , , , 0 ' Creates a new projection and shares the sphere texture projection definition ConnectToProjection "torus", "Texture_Projection", "sphere.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection.Texture_Projection_Def" SetDisplayMode "Camera", "textured"
See Also
Autodesk Softimage v7.5