Skip to reading
PCA Script Programming

create_primitive()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Create Primitive | Action ID: CreatePrimitive

Create a runtime primitive such as a box, sphere, cylinder, capsule or plane.

Source table from create_primitive(), page 126
Option key / fieldMeaning and accepted inputDefault
Primitive primitiveChoose: box, sphere, cylinder, capsule, plane."box"
ID idText.Blank
XYZ positionDestination/placement coordinates as [X, Y, Z].[0.0, 0.0, 0.0]

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
create_primitive({"primitive": "box", "id": "", "position": [0.0, 0.0, 0.0]})

In use. Spawn a temporary marker for a puzzle demonstration. The normal action form has a small set of fields; detailed dimensions/material settings may need structured data or later property changes supported by the runtime.

Page 126 of 357Permalink
Go to page