LOADVIEW(nged)
Restore a saved MGED view and displayed object list from a saveview-style script.
π LOADVIEW β like, the nged girlies' manual page β¨
okay so real talk, this is loadview from the BRL-CAD User Commands squad (the nged crew π) and she is here to bring your whole look back. bestie, she restores a saved MGED view and the displayed object list from a saveview-style script. no cap.
β¨ SYNOPSIS β¨
loadview filename
that's it. one argument. she's low maintenance. π
π¦ DESCRIPTION π¦
so loadview reads a saveview-style script and puts the view info it contains back into your current MGED session. it's literally made for scripts that saveview produced β they're like sisters, iykyk. π«Ά
heads up tho: this command needs a database that's already open and a view that's already active. she does not open the database that's named inside the script. instead she compares the script's database pathname against the database you currently have open, and if they don't match she'll throw a warning at you. consider that your vibe check. β οΈ
here's what she does when she reads the script, in order:
- resets perspective to off, then reapplies a saved
-pperspective value if the script actually contains one π― - clears the current display with
Zbefore she loads the saved object list π§Ή - draws the objects listed in the script into the current display βοΈ
- reads the saved view command block and applies all the recognized view settings πΈ
the view-command parser accepts the commands that saveview uses, including viewsize, eye_pt, orientation, start, clean, and end. she also recognizes lookat_pt and viewrot. and the non-view script commands she knows about β things like start and clean β are accepted and then ignored for restoration purposes. she sees them, she acknowledges them, she moves on. π
view changes get finalized when the script's end command is processed. and lowkey important: if a script uses lookat_pt, it should specify eye_pt first, so the view direction can be reconstructed correctly. order matters, bestie, don't play yourself. π
π EXAMPLES π
these show how loadview restores a view from a script you already saved. iconic behaviour only.
π Example 1. Restore a view saved by saveview.
mged>loadview render.rt
she clears the current display, draws the objects named in render.rt, and restores the saved view parameters from that script. chef's kiss. π
π Example 2. Reload a saved view script after editing it externally.
mged>loadview raycast.sh
she reads the saved view block and object list from raycast.sh and applies the recognized settings to your current MGED session. edit it, run it, slay it. π₯
π AUTHOR π
BRL-CAD Team β the ones who made all of this happen. respect. π«‘
π BUG REPORTS π
if you find a bug or a problem (it happens, we don't gatekeep), reports should be submitted via electronic mail to devs@brlcad.org. tell them everything, they want the tea. π§
and that's the page, bestie β brought to you by BRL-CAD and the LOADVIEW(nged) manual, straight from the nged girlies themselves. go restore a view and be the main character of your own rendering session πβ¨π
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms