CreateReferencePlane

導入

v1.5

詳細

選択対象に基づき新しいリファレンス プレーンを作成し、アクティブなリファレンス プレーンに設定します。

スクリプト構文

oReturn = CreateReferencePlane( [InputObjs] );

戻り値

作成されるリファレンス プレーンのリストを含む XSICollection オブジェクトを戻します。

パラメータ

パラメータ タイプ 説明
InputObjs 文字列 オブジェクトのリスト

デフォルト値: 現在選択されている値

VBScript の例

'

'	This example shows how to create a reference plane

'

NewScene

'Create a sphere

'Create a grid that will serve to define the reference plane

CreatePrim "Sphere", "MeshSurface"

CreatePrim "Grid", "MeshSurface"

TranslateTool

'Position and create reference plane from grid

Rotate , 45, 0, 0, siAbsolute, siParent, siObj, siX

CreateReferencePlane "grid"

SelectObj "sphere", , True

'Set-up snapping to the reference plane

'Set plane reference mode in MCP

SetValue "Preferences.SnapProperties.Enable", True

SetValue "Preferences.SnapProperties.EnableGrid", True

SetUserPref "3D_TRANSFO_REFERENTIAL_CHANGED", 7

関連項目

SetReferencePlane SetCurrentReferencePlane SetTransientReferencePlane