DrawPrimitiveTool

導入

v1.0

カテゴリ

モデリングの描画

詳細

ユーザが選択した位置に、プリミティブを作成します。

スクリプト構文

DrawPrimitiveTool( PresetObj, GeometryType, [Name], [Parent] );

パラメータ

パラメータ タイプ 詳細
PresetObj 文字列 またはプリセット オブジェクト(「SIGetPreset」を参照) ジオメトリ プリミティブ プリセットの名前。 サポートされているプリセット名のリストについては、「ジオメトリ プリミティブ」を参照してください。
GeometryType 文字列 要求するジオメトリ タイプ

指定可能な値:

説明:

NurbsCurve
NurbsSurface
MeshSurface
Name 文字列 新規プリミティブの基本名
Parent 文字列 既存のオブジェクトの名前。新しいプリミティブの親として使用されます。

1. VBScript の例

'This example shows how to activate the interactive command DrawPrimitiveTool
newscene
'Activate.  Click to create NURBS discs with default name under scene root
DrawPrimitiveTool"Disc", "NurbsSurface"

2. VBScript の例

'This example shows how to activate the interactive command DrawPrimitiveTool
newscene
CreatePrim "Sphere", "MeshSurface"
'Activate. Click to create NURBS discs with name prefix MyDisc
'Each new primitive is parented under the object named sphere.
DrawPrimitiveTool"Disc", "NurbsSurface", "MyDisc", "sphere"

3. VBScript の例

'This example shows how to activate the interactive command DrawPrimitiveTool
newscene
CreatePrim "Sphere", "MeshSurface"
'Activate.  Click to create NURBS discs with default name under sphere object
DrawPrimitiveTool"Disc", "NurbsSurface",,"sphere"

関連項目

DrawImplicitPrimitiveTool