KNOB(nged)

Provides a method for simulating knob input. With no options, it will display the current values for the knobs.

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… KNOB(nged) β€” BRL-CAD User Commands ✨

okay bestie, welcome to the KNOB(nged) page from the BRL-CAD User Commands manual. This one is lowkey an internal gremlin, but we're gonna make it make sense πŸ’–

πŸ’– NAME

knob β€” provides a method for simulating knob input. With no options, it will display the current values for the knobs.

✨ SYNOPSIS

    knob [-e -i -m -v] [[-o] | [v] | [m] | [e] | [k]] [[zap] | [zero] | [id [val]]]

🌸 DESCRIPTION

🚨 real talk: the *knob command is used internally by MGED in the processing of knob input devices, and it is not recommended for users. You're getting the lore anyway, bestie.

The *knob command provides a method for simulating knob input. With no options, it will display the current values for the knobs. With the zap or zero command provided, all the knob values will be reset to zero. If an id and value are provided, the specified knob setting will be simulated.

If the -i option is specified, then the value provided will be used as an increment to be applied to the indicated knob. Increment era πŸ’…

The knobs have different functions depending on the current mode. For example, if in primitive or matrix edit mode and a rotation or translation function is selected, the knob effects are applied to the edited object by default. However, the -v (view coordinates) and -m (model coordinates) options may be used to adjust the view without modifying primitives or matrices.

  • -e β€” allows the knob effects to be applied to the edited object when they would normally be applied to the view.
  • -i β€” uses the provided value as an increment applied to the indicated knob.
  • -m β€” model coordinates; may be used to adjust the view without modifying primitives or matrices.
  • -v β€” view coordinates; may be used to adjust the view without modifying primitives or matrices.
  • -o β€” allows the origin of rotation to be specified with v, m, e, and k, indicating view, model, eye, and keypoint, respectively.

The units for value are degrees for rotation and local units for translation. The available knob ids are:

  • x β€” rate-based rotation about horizontal axis. πŸŒ€
  • y β€” rate-based rotation about vertical axis. πŸŽ€
  • z β€” rate-based rotation about axis normal to screen. ✨
  • X β€” rate-based translation in horizontal direction. πŸ¦‹
  • Y β€” rate-based translation in vertical direction. 🌸
  • Z β€” rate-based translation in direction normal to screen. πŸ’«
  • S β€” rate-based Scale or Zoom. πŸ”
  • ax β€” absolute rotation about horizontal axis. πŸ’…
  • ay β€” absolute rotation about vertical axis. 🫢
  • az β€” absolute rotation about axis normal to screen. 🌈
  • aX β€” absolute translation in horizontal direction. ⭐
  • aY β€” absolute translation in vertical direction. πŸ’œ
  • aZ β€” absolute translation in direction normal to screen. 🧚
  • aS β€” absolute Scale or Zoom. πŸ‘‘
  • xadc β€” absolute translation of adc in horizontal direction (screen coordinates -2048 to +2048). πŸ“
  • yadc β€” absolute translation of adc in vertical direction (screen coordinates -2048 to +2048). πŸ“
  • ang1 β€” absolute rotation of adc angle1 (degrees). πŸ“
  • ang2 β€” absolute rotation of adc angle2 (degrees). πŸ“
  • distadc β€” distance setting of the adc (screen coordinates -2048 to +2048). 🎯

πŸŽ€ EXAMPLES

The example shows the use of the knob command with the y option to rotate a view about the vertical axis.

Example 1. Rotate a view about the vertical axis. πŸŒ€

mged> knob y 1

Starts the view rotating about the vertical axis.

πŸ‘‘ AUTHOR

BRL-CAD Team πŸ’–

πŸ› BUG REPORTS

Reports of bugs or problems should be submitted via electronic mail to devs@brl-cad.org πŸ“¬


BRL-CAD β€’ KNOB(nged) β€” that's the source/version and manual-name sign-off, bestie. Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from