ConnectToProjection

カテゴリ

テクスチャ レンダリング

詳細

新しいプロジェクションを作成し、既存のテクスチャ プロジェクション定義を共有します。

スクリプト構文

ConnectToProjection( [InputObjs], PropertyName, [TextureProjection] );

パラメータ

パラメータ タイプ 詳細
InputObjs 文字列 接続するオブジェクトのリスト

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

PropertyName 文字列 新しいテクスチャ プロジェクションの名前。 割り当てられた実際の名前を戻します。
TextureProjection 文字列 定義を共有するテクスチャ プロジェクション。

VBScript の例

' 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"

関連項目

CreateProjection ConnectToSupport