Bảng các Bộ Điều Vận

../../_images/animation_drivers_drivers-panel_panel.png

Edit Driver popover.

Tham Chiếu

Trình Biên Soạn

Trình Biên Soạn Đồ Thị

Chế Độ

Các Điều Vận

Bảng

Sidebar region ‣ Drivers

Tổ Hợp Phím Tắt

N

Tham Chiếu

Trình Đơn

Context menu ‣ Edit Driver

Tổ Hợp Phím Tắt

Ctrl-D

This panel is visible in Sidebar of the Drivers Editor or as a popover when adding a driver to a property.

It shows the property that is being driven, followed by a series of settings that determine how the driver works.

Cài Đặt của Điều Vận

Thể Loại

There are two categories of drivers:

  • Built-in functions (Average, Sum, Min and Max)

    The driven property will have the value of the average, sum, lowest or highest (respectively) of the values of the referenced Driver Variables. If there is only one driver variable, these functions will yield the same result.

  • Custom (Scripted Expression).

    An arbitrary Python expression that can refer to the Driver Variables by name. See Expressions.

Giá Trị Bộ Điều Vận

The current result of the driver setup. Useful for debug purposes.

Biến Số

See Driver Variables.

Cập Nhật các Phụ Thuộc

Forces an update for the Driver Value dependencies.

Hiển Thị Trình Biên Soạn Điều Vận

Opens the fully featured Drivers Editor. This button only appears in the popover version of the Drivers panel.

Biến Số Bộ Điều Vận

Variables are references to properties, transformation channels, or the result of a comparison between transformations of two objects.

Drivers should access object data via Driver Variables, rather than direct references in the Python expression, in order for dependencies to be correctly tracked.

../../_images/animation_drivers_drivers-panel_add-variable.png

Add, Copy, Paste buttons.

Thêm Biến Số Đầu Vào

Adds a new Driver Variable.

Sao Chép/Dán Biến Số/Sao Chép/Dán các Biến Số

Copies the current variable list so it can be pasted into another driver's variable list.

../../_images/animation_drivers_drivers-panel_single-property.png

Đơn Tính Chất.

../../_images/animation_drivers_drivers-panel_transform-channel2.png

Kênh Biến Hóa.

../../_images/animation_drivers_drivers-panel_distance.png

Khoảng Cách.

Tên

Name for use in scripted expressions. The name must start with a letter, and only contain letters, digits, or underscores.

Loại Biến Số

The type of variable to use.

Đơn Tính Chất

Retrieves the value of an RNA property, specified by a data-block reference and a path string.

In case of transform properties, this will return the exact value of the UI property, while Transform Channel will take parenting and/or constraints into account as needed.

See also Tính chất tự tạo.

Loại ID

The ID-block type. For example: Key, Image, Object, Material.

Chỉ Danh -- ID

The ID of the ID-block type. For example: "Material.001".

Đường dẫn RNA

The RNA name of the property, based on a subset of Python attribute access syntax. For example: location.x or location[0] for the raw X location value, or ["prop_name"] for a custom property.

Mẹo

The easiest way to create a variable of this type is to use the Copy As New Driver context menu option of the input property, and paste the result into the driver via Paste Driver Variables.

Kênh Biến Hóa

Retrieves the value of a Transform channel from an object or bone.

Chỉ Danh -- ID

ID of the object. For example: Cube, Armature, Camera.

Xương

ID of the Armature bone. For example: "Bone", "Bone.002", "Arm.r". This option is for armatures.

Thể Loại

For example, X Location, X Rotation, X Scale.

The Average Scale option retrieves the combined scale value, computed as the cubic root of the total change in volume. Unlike X/Y/Z Scale, this value can be negative if the object is flipped by negative scaling.

Chế Độ (Xoay Chiều)

For rotation channels, specifies the type of rotation data to use, including different explicit Euler orders. Defaults to using the Euler order of the target. See Rotation Channel Modes.

Cách/Khoảng Trống/Không Gian

World Space, Transform Space, Local Space.

Dịch Chuyển của Độ Xoay

Provides the value of the rotational difference between two objects or bones, in radians.

Khoảng Cách

Provides the value of the distance between two objects or bones.

Giá Trị

Shows the value of the variable.

Chế Độ Kênh Xoay Chiều

Rotation Transform Channels support a number of operation modes, including:

Euler Tự Động

Uses the Euler order of the target to decompose rotation into channels.

Euler XYZ, ...

Explicitly specifies the Euler rotation order to use.

Quatenion

Provides the Quaternion representation of the rotation.

Đung đưa và xoắn X/Y/Z

Decomposes the rotation into two parts: a Swing rotation that aims the specified axis in its final direction, followed by a Twist rotation around that axis. This is often necessary for driving corrective Shape Keys and bones for organic joint rotation.

This decomposition is often produced in rigs by using a helper bone with a Damped Track Constraint to extract the swing part, and its child with Copy Transforms to extract the twist component.

The channels values for Swing and Y Twist are:

../../_images/animation_drivers_drivers-panel_angle-curve.png

Falloff curves for weighted angles.

Xoay chiều Y

True angle of the twist rotation.

Xoay Chiều W

True angle of the swing rotation, independent of its direction.

Xoay Chiều X, Xoay Chiều Z

Weighted angles that represent the amount of swing around the X/Z axis.

The magnitude of the angle equals W Rotation when the rotation is purely around that axis, and fades out to zero as the direction changes toward the other axis, following the falloff curves from the graph on the right.

Mathematically, the swing angles are computed from quaternion components, using \(2 \arccos(w)\) for W and \(2 \arcsin(x)\) etc. for the others. The component of the swing rotation that corresponds to the twist axis is always 0, and is replaced by the twist angle.

Các Biểu Thức

Biểu Thức

A text field where you can enter an arbitrary Python expression that refers to Driver Variables by their names.

The expression has access to a set of standard constants and math functions from math, bl_math and other modules, provided in the Driver Namespace. For an example of adding a custom function to the namespace, see the driver namespace example.

For performance reasons it is best to use the Simple Expressions subset as much as possible.

Sử Dụng Self

If this option is enabled, the variable self can be used for drivers to reference their own data. Useful for objects and bones to avoid having creating a Driver Variable pointing to itself.

Example: self.location.x applied to the Y rotation property of the same object will make the object tumble when moving.

Note that dependencies for properties accessed via self may not be fully tracked.

Biểu Thức Đơn Giản

Blender can evaluate a useful subset of Python driver expressions directly, which significantly improves performance, especially on multi-core systems. To take advantage of this, the driver expression must only use the following features:

Tên Biến Số

Use only ASCII characters.

Nguyên Văn/Bằng Chữ/Theo Nghĩa Đen/Hằng Số/Chuỗi Ký Tự/Trực Kiện

Floating-point and decimal integer.

Tham Số Toàn Cầu

Khung Hình

Các Hằng Số/Đồng Đều/Bất Biến/Không Thay Đổi/Ngừng/Liên Tục

pi, True, False

Thao Tác

+, -, *, /, ==, !=, <, <=, >, >=, and, or, not, conditional operator/ ternary if

Hàm Tiêu Chuẩn

min, max, radians, degrees, abs, fabs, floor, ceil, trunc, round, int, sin, cos, tan, asin, acos, atan, atan2, exp, log, sqrt, pow, fmod

Blender Provided Functions

lerp, clamp, smoothstep

Simple expressions are evaluated even when Python script execution is disabled.

When an expression outside of this subset is used, Blender displays a "Slow Python expression" warning. However, as long as the majority of drivers use simple expressions, using a complex expression in select few is OK.