Numeric Input Fields

../../../_images/interface_controls_buttons_number_number-button.png

Numeric input fields.

Numeric input fields store values and units.

First type of numeric input field shows triangles pointing left (◂) and right (▸) on the sides of the field when mouse pointer is on top of the field. Second field type sliders have a colored bar in the background to illustrate value over a range, e.g. percentage values.

The value can be edited in several ways:

Incremental Steps
To change the value in unit steps, click LMB on the small triangles (only available on first field type). You can also use Ctrl-Wheel while hovering over the field to edit the value.
拖动
To change the value with mouse, hold down LMB and drag to left or right.
Keyboard Input

Press LMB or Return to enter value by typing it with keyboard.

When entering values by keyboard, numeric fields work like text fields:

  • 在文本框外部按 ReturnLMB ,应用修改。
  • Press Esc or RMB to cancel.
  • Press Tab to jump to the next field or Ctrl-Tab to go to the previous field.
  • Press Minus while hovering over a numeric field to negate the value.

多数值编辑

../../../_images/interface_controls_buttons_number_multi-value-edit.png

多数值编辑。

You can edit multiple numeric fields at once by pressing down LMB on the first field, and then drag vertically over the fields you want to edit. Finally you can either drag left or right to adjust value with mouse, or release the LMB and type in a value.

Value Limits

Most numerical values are restricted by "soft limit" and "hard limit" value ranges. Changing value by dragging with mouse is restricted to "soft limit" value range. Input via keyboard can allow use of wider value range, but never wider than "hard limit".

表达式

You can enter mathematical expressions into any numerical input field. For example, enter 3*2 or 10/5+4 instead of 6. Even constants like pi (3.142) or functions like sqrt(2) (square root of 2) may be used.

See also

这些表达式由Python进行计算;可以使用的数学表达式见 math模块参考

表达式作为驱动

用户可能希望键入的表达式可以在输入后重新运算。Blender中 驱动 (动画系统的功能之一)支持该用法。

Expressions beginning with # have a special use. Instead of evaluating the value and discarding the expression, a driver is added to the property with the expression entered.

#frame 是将数值映射至当前帧的快捷方法, 不过同样支持更复杂的表达式如 #fmod(frame, 24) / 24

这仅仅是快速添加驱动的方法之一,还可以使用 RMB 菜单添加驱动。

单位

As well as expressions, you can specify numbers and units. If no unit is given, then a default unit is applied. The unit system can be changed in scene settings.

You can use either the unit abbreviation or the full name after the value.

Examples of valid usage of length units include:

  • 1cm
  • 1m 3mm
  • 1m, 3mm
  • 2ft
  • 3ft/0.5km
  • 2.2mm + 5' / 3" - 2yards

Note

使用单位

  • Decimal separator is optional.
  • You can mix units, e.g. metric and imperial even though you can only show one at a time.
  • 复数单位也可以识别,所以 metermeters 都可以用。