Changeset View
Changeset View
Standalone View
Standalone View
manual/animation/basics/drivers.rst
| Context not available. | |||||
| Workflow | Workflow | ||||
| ======== | ======== | ||||
| Adding Drivers | There are some different ways to add drivers in blender. These are some driver examples and workflow. | ||||
| ^^^^^^^^^^^^^^ | After adding drivers they are usually modified in the *Graph Editor* with the mode set the *Drivers*. | ||||
| To control a property with a driver, find the property you want to add driver to. | |||||
| UI | |||||
| -- | |||||
fsiddi: Since this comes after a title of type
```
heading 2
=========
```
it should be
```
heading 3… | |||||
| FIXME(Template Unsupported: Shortcut/Mouse; | The common way to add a driver to a property is to right click a property, then add a driver via the context menu. | ||||
| {{Shortcut/Mouse|rmb}} | |||||
| ) the property and select one of the following options. | |||||
| Add Drivers | **Add Drivers** | ||||
| This will add drivers to the set of properties related to the selected one. | This will add drivers to the set of properties related to the selected one. | ||||
| For example, it will add drivers to X, Y, and Z for Rotation. | For example, it will add drivers to X, Y, and Z for Rotation. | ||||
Not Done Inline ActionsNot sure why you are going for *italic* here. In general we don't use this for these elements, since they become already bold in the generate html. If you could remove it would be great. fsiddi: Not sure why you are going for *italic* here. In general we don't use this for these elements… | |||||
| Add Single Driver | |||||
| This will add a single driver to the selected property. | |||||
| **Add Single Driver** | |||||
Not Done Inline ActionsSee similar above. fsiddi: See similar above. | |||||
| This will add a single driver to the selected property. | |||||
| .. figure:: /images/Doc_Add_Driver2.jpg | .. figure:: /images/Doc_Add_Driver2.jpg | ||||
| Add Single Driver. | Drivers can also be added by pressing :kbd:`D` with the mouse over the property set. | ||||
| Transform Driver | #Expression | ||||
| ^^^^^^^^^^^^^^^^ | ----------- | ||||
| This is quick way to add drivers with a scripted expression. | |||||
| First click the property you want add a driver to, then add a hash **#** and a scripted expression. | |||||
| Some examples. | |||||
Not Done Inline ActionsSee similar above. fsiddi: See similar above. | |||||
| This example shows you how rotate a cube mesh by moving another cube left or right in the 3D | - **#frame** | ||||
| view. | - **#frame/20** | ||||
| First make sure you are in the *Front Orthographic View* :kbd:`Num1`, | - **#sin(frame)** | ||||
| :kbd:`Num5`. | - **#cos(frame)** | ||||
| - In *Object Mode* select then *Duplicate* :kbd:`Shift-D` the default Cube. | Copy Paste | ||||
| - Move the cube to a new location. You should have two mesh objects, *Cube* and *Cube.001*. | ---------- | ||||
Not Done Inline ActionsSee similar above. fsiddi: See similar above. | |||||
| - With *Cube.001* selected as the active object, *Add Single Driver* to the *Rotation Y* property. | |||||
| - Open the *Graph Editor*, set the mode to *Drivers*. | |||||
| - *Show Only Selected* is useful disabled for drivers, marked in green. | |||||
| - Open the Properties Region :kbd:`N`, go to the *Drivers Panel*. | |||||
| - You may need to select the driver *Y Euler Rotation* :kbd:`LMB` for the *Drivers Panel* to appear. | |||||
| - Set the driver *Type* to *Sum Values*. | |||||
| - Set the driver variable *var* settings. | |||||
| - Set *Type* to *Transform Channel*. | |||||
| - Set *Ob/Bone ID-block* to *Cube*. | |||||
| - Set *Transform Type* to *X Location*. | |||||
| - Set *Transform Space* to *World Space*. | |||||
| Drivers can be copied and pasted in the UI, via the context menu. | |||||
| When adding drivers with the same settings, this can save time modifying settings. | |||||
| Transform Driver | |||||
| ---------------- | |||||
Not Done Inline ActionsSee similar above. fsiddi: See similar above. | |||||
| .. figure:: /images/Doc_Drivers_TD_Workflow.jpg | This examples shows you how setup a transform driver. | ||||
| First make sure you are in the Front Ortho view. :kbd:`Numpad5`, :kbd:`Numpad1`. | |||||
| Transform Driver workflow. | (1) In object mode, select then duplicate the default **Cube**. :kbd:`Shift+D`. Move **Cube.001** to a new location. | ||||
| (2) With **Cube.001** selected, add a single driver to the **Rotation Y** property. | |||||
| (3) Open the *Graph Editor*, set the *Mode* to *Drivers*. | |||||
| (4) *Show Only Selected* is useful disabled for drivers, marked green in the picture. | |||||
| (5) In the channels region, select the **Y Euler Rotation** property. | |||||
| (6) Press :kbd:`N` to open the properties region, scroll down to *Drivers* panel. | |||||
| (7) Change the *Type* to *Averaged Value*, this will return the averaged value of the driver variables. | |||||
| (8) Modify the driver variable settings. | |||||
| - *Type* - *Transform Channel* | |||||
| - *Ob/Bone* - *Cube* | |||||
| - *Transform Type* - *X Location* | |||||
| - *Transform Space* - *World Space* | |||||
| .. figure:: /images/animation_drivers_transform.jpg | |||||
| Now when you move the *Cube* left or right in the 3D View, *Cube.001* should rotate. | When finished, **Cube.001** should rotate on the Y axis when moving **Cube** left of right. | ||||
| Examples | Examples | ||||
| Context not available. | |||||
Since this comes after a title of type
it should be
with dashes instead of ^ signs.