paya.lib.layouttools#

Interactive layout helpers.

locatorAtComponentCentre()#

Creates a locator at the center of selected mesh components.

Instructions

  1. Select some components.

  2. Run.

Returns

The generated locator transform.

Return type

Transform

locatorBetweenTwoObjects()#

Creates a locator at the midpoint between two other objects.

Instructions

  1. Select two objects. These can be transforms, or any Paya type that implements getWorldPosition().

  2. Run.

Returns

The generated locator transform.

Return type

Transform

distributePositions()#

Distributes transform positions. The start and end transform positions won’t be edited at all.

Instructions

  1. Select three or more transforms, in the order you want them distributed.

  2. Run.

aimObject()#

Orients a transform using an ‘aim’ and ‘up’ interest. Aim and up axes are derived from initial orientation.

Instructions

  1. Roughly orient the ‘slave’ transform.

  2. Select the ‘aim’ interest. This can be a transform, or any Paya type that implements getWorldPosition().

  3. Add-select the ‘up’ interest. This can be a transform, or any Paya type that implements that implements getWorldPosition().

  4. Add-select the ‘slave’ transform.

  5. Run.