Use the model actions from a script
extends "res://scripts/runtime/script_base.gd"func run(_context: Dictionary = {}) -> Variant:
await CenterGUIModel({
"guiId": "model_lab",
"elementId": "object_viewer"
})
return trueCreate and apply this GDScript record, then run it from the intended Button or gameplay interaction. The IDs are the GUI and its element, not the source model asset ID.
Figure 14. The visual-script node uses the same two target IDs.
For a visual graph, connect the intended entry node to Center GUI Model. For an action list, add the same action and fill in the two selectors. You do not need a custom camera script just to recover the framing.
