v1.0
Creates primitives at the positions picked by the user.
DrawPrimitiveTool( PresetObj, GeometryType, [Name], [Parent] ); |
Parameter | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
PresetObj | String or a preset object (see SIGetPreset) | The name of a geometry primitive preset. See Geometry Primitives for a list of supported preset names. | ||||||||
GeometryType | String |
Required geometry type.
|
||||||||
Name | String | Base name of new primitives | ||||||||
Parent | String | Name of an existing object to use as the parent of the new primitives. |
'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" |
'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" |
'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" |