flexsim_set_view
Safely frame a FlexSim 3D view on a named object or all objects: verifies the target, reports its position, repaints the view, and records the requested 3d/top/front intent for screenshot checking.
Instructions
Frame the 3D view on an object, safely (no invented camera commands).
Safe subset, because this repo has no verified FlexScript camera/fit API: verifies
the target exists via Model.find, reports its position (or points at
flexsim_inspect_model + flexsim_layout_line for target="all"), runs the proven
repaintall() and tells you to check with flexsim_screenshot. The requested view
(3d/top/front) is recorded as intent; nothing else touches the camera, so this tool
can neither hang nor move the model. To frame by hand use the view cube / View menu,
then screenshot.
Limit: flexsim_screenshot region="view3d" crops fixed VIEW3D_CROP fractions
(utility/capture.py:131) tuned for the default template layout; with a rearranged UI
prefer region="window". flexsim_screenshot itself is left intact (no custom crop
parameter: parsing arbitrary crops adds risk for zero verified benefit).
Args:
target: object name or "all" (default).
view: 3d (default), top or front (recorded intent, see above).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |