SetCurrentReferencePlane

導入

v1.5

詳細

現在のリファレンス プレーン(変換または描画に使用されるプレーン)を設定します。 適切なリファレンス プレーンは[Project] > [Data]の下の[RefPlanes]フォルダにあります。

スクリプト構文

SetCurrentReferencePlane( Value );

パラメータ

パラメータ タイプ 説明
Value 文字列 使用するリファレンス プレーンの名前

指定可能な値:

説明:

RefPlanes.View ビュー プレーン
RefPlanes.XY XY プレーン
RefPlanes.XZ XZ プレーン
RefPlanes.YZ YZ プレーン
RefPlanes.Transform 変換プレーン

VBScript の例

'

'	This example shows how to set the reference plane from the  

'	data stored in the refplane transform 

'

NewScene

TranslateTool

'Create a sphere 

CreatePrim "Sphere", "MeshSurface" 

'Use reference plane XZ

SetCurrentReferencePlane "RefPlanes.XZ" 

'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 

MsgBox "Translate the sphere - note it is locked to the XZ reference plane."

'NOTE: you can set back the current reference plane to  

'the one created from CreateReferencePlane or SetTransientReferencePlane 

'by doing SetCurrentReferencePlane "RefPlanes.Transform"

関連項目

SetCurrentPass SetCurrentLayer SetTransientReferencePlane SetReferencePlane CreateReferencePlane