SAVEKEY(nged)
append current view as a keyframe to an animation script file
πΎ SAVEKEY(nged) β BRL-CAD User Commands β append current view as a keyframe to an animation script file β¨
πΈ NAME
Okay so savekey is literally the command that appends your current view as a keyframe to an animation script file. Main character energy, no cap π
.
π SYNOPSIS
savekey file [time]
Thatβs the whole vibe check, bestie.
π¦ DESCRIPTION
Hereβs the tea: the savekey command saves the current view state as a keyframe entry to file, which is opened in append mode. If the file does not exist it is created; if it exists, the new keyframe is appended to the end. Periodt.
The optional time argument is a floating-point number that is written as a timestamp on the first line of the keyframe entry. If omitted, no timestamp line is written and the view data follows immediately. Multiple keyframes can be accumulated in the same file by calling savekey repeatedly with increasing time values. Obsessed with that little routine, fr fr π.
π Output format
Each keyframe entry consists of the following lines written in the RT animation script format:
- (Optional)
timeβ the floating-point time value, if provided. sizeβ the view size (a single floating-point value).ex ey ezβ the model-space eye position (three floating-point values), computed from the current view-to-model transform at the conventional eye position (view-space[0, 0, 1]).- A 4Γ4 rotation matrix β the current view rotation, written as four rows of four space-separated floating-point values.
- A blank line terminating the entry.
This format is compatible with RTβs -M option for animated rendering β slay π₯.
To save the complete view state (including eye point, orientation, and size in a single operation), use saveview. To restore a view saved with savekey, use loadview. Teamwork, iykyk π«Ά.
π EXAMPLES
Example 1. Save the current view as a keyframe at time 0
mged> savekey anim.key 0
Appends the current view as a keyframe at time 0.0 to anim.key. The file is created if it does not exist.
Example 2. Accumulate multiple keyframes for animation
mged> ae 0 0 mged> savekey anim.key 0 mged> ae 90 0 mged> savekey anim.key 1 mged> ae 180 0 mged> savekey anim.key 2
Sets three view orientations and saves them as keyframes at times 0, 1, and 2 in anim.key, building an animation that rotates the view 180Β° over 2 seconds.
Example 3. Save without a timestamp
mged> savekey view.key
Appends the current view to view.key with no timestamp. Useful when time-stamping will be handled externally.
π AUTHOR
BRL-CAD Team. Iconic, honestly.
π BUG REPORTS
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. Do that if somethingβs giving broken, bestie π«Ά.
Okay thatβs the whole page π β source/version: BRL-CAD, page: SAVEKEY(nged), and thatβs literally the entire footer; no date listed ππ.
π¦ 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