set_rig_control_limits
Set min/max limits on scalar Control Rig controls to enable clamping and keep Float, ScaleFloat, or Integer values within defined bounds.
Instructions
Set a scalar Control Rig control's min/max limits (Float/ScaleFloat/Integer). Enables the limit array for the control type and sets MinimumValue/MaximumValue type-correctly; once enabled, set_rig_control_value clamps via ApplyLimits. Verified read-back.
Returns: { asset_path: string, control_name: string, control_type: string, min: number, max: number, limit_enabled: bool, saved: bool, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | Yes | Maximum value (number). | |
| min | Yes | Minimum value (number). | |
| force | No | Optional. This command is REFUSED while a Play-in-Editor session is running: it either compiles a Blueprint (the reinstancer can retain a world, and CheckForWorldGCLeaks is Fatal -- it KILLS the editor) or writes to disk (Editor.AllowSavingAssetsDuringPIE=0 makes the engine refuse the write, so it would report success without writing a byte). Stop PIE and retry instead; force=true runs it anyway, at your own risk. | |
| enable | No | Whether to enable the limits (optional, default true). | |
| control_name | Yes | Name of an existing control element (Float/ScaleFloat/Integer). | |
| control_rig_path | Yes | Path to the UControlRigBlueprint asset. |