Skip to reading
PCA Script Programming

align_attach_points()

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

Align Attach Points | Action ID: AlignAttachPoints

Align two attach points once without establishing the same continuing attachment relationship.

Source table from align_attach_points(), page 161
Option key / fieldMeaning and accepted inputDefault
Object / Character entityIdChoose a scene entity ID.Blank
Attach Point pointName of the source attach point.Blank
Target Object targetIdChoose a scene entity ID.Blank
Target Attach Point targetPointName of the attach point on the target entity.Blank
Align Rotation alignRotationAlign point orientation as well as position.true

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

Code example
align_attach_points({"entityId": "archive_door", "point": "", "targetId": "archive_door"})

In use. Align two hands before a handshake pose. If either character then moves or the animation moves the hands apart, a one-time alignment is not guaranteed to keep contact throughout the animation.

Page 161 of 357Permalink
Go to page