bgdev.utils.constraints¶
Utility methods about constraints.
- created
05/03/2017
- author
Benoit GIELLY <benoit.gielly@gmail.com>
-
aim_to_children
(up_vector=(0, 1, 0), aim_vector=(1, 0, 0))[source]¶ Find an up vector for the selection and aim toward each others.
- Parameters
up_vector –
aim_vector –
-
matrix_constraint
(driver, target, srt='srt')[source]¶ Constraint one node to another using their worldMatrix attributes.
- Parameters
driver (str) – The driver node
target (str) – The node that follow the driver.
srt (str) – The attributes to connect.
- Returns
The multMatrix and decomposeMatrix nodes.
- Return type
tuple