constraint_set_weight
Set a constraint target's weight (0-100) to control its influence relative to other targets in a multi-target constraint.
Instructions
设置约束中某个目标的权重(0-100,与 UI 一致)。多个目标混合时靠它分配影响力。 [English] Set the weight (0-100, like the UI) of a target in a constraint. With multiple targets this distributes influence between them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weight | Yes | 新权重(0-100)。 | New weight (0-100). | |
| objects | No | 对象名列表;省略则用当前选择。 | Object names; omit for the current selection. | |
| property | Yes | 属性:position / rotation / scale 等带约束的轨道。 | Property: position / rotation / scale or other constrained track. | |
| targetIndex | Yes | 目标在约束中的序号(从 1 起)。 | Target index in the constraint (1-based). |