﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AKoilz%2F29.11.13_wiki_-_Driver_Reference</id>
	<title>利用者:Koilz/29.11.13 wiki - Driver Reference - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AKoilz%2F29.11.13_wiki_-_Driver_Reference"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Koilz/29.11.13_wiki_-_Driver_Reference&amp;action=history"/>
	<updated>2026-06-18T14:17:00Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Koilz/29.11.13_wiki_-_Driver_Reference&amp;diff=145251&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Koilz/29.11.13_wiki_-_Driver_Reference&amp;diff=145251&amp;oldid=prev"/>
		<updated>2018-06-28T21:05:53Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 21:05時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Koilz/29.11.13_wiki_-_Driver_Reference&amp;diff=145250&amp;oldid=prev</id>
		<title>2013年12月26日 (木) 01:14にwiki&gt;Koilzによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Koilz/29.11.13_wiki_-_Driver_Reference&amp;diff=145250&amp;oldid=prev"/>
		<updated>2013-12-26T01:14:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOINDEX__&lt;br /&gt;
&lt;br /&gt;
= Animation Tools: Drivers =&lt;br /&gt;
&lt;br /&gt;
== Drivers ==&lt;br /&gt;
&lt;br /&gt;
[[File:Doc_Animation_Driver_FCurve.PNG|frame|Graph Editor: Driver example.]]&lt;br /&gt;
&lt;br /&gt;
Drivers can use properties, numbers, transformations, and scripts, to control the values of properties.&lt;br /&gt;
&lt;br /&gt;
Using a F-Curve, the driver reads the value of the Driver Value and sets the value of the selected property it was added to.&lt;br /&gt;
&lt;br /&gt;
So from this example, if the Driver Value is 2.0 the property will be 0.5.&lt;br /&gt;
&lt;br /&gt;
The Driver Value is determined by Driver Variables or a Scripted Expression.&lt;br /&gt;
&lt;br /&gt;
Most the settings for the drivers F-Curve are found in the Graph Editor.&lt;br /&gt;
&lt;br /&gt;
{{clr}}&lt;br /&gt;
&lt;br /&gt;
== Adding Drivers ==&lt;br /&gt;
&lt;br /&gt;
;To add a driver to a property, find the property you want to add driver to.&lt;br /&gt;
&lt;br /&gt;
{{Shortcut/Mouse|rmb}} on the property and select one of the following options:&lt;br /&gt;
&lt;br /&gt;
;{{Literal|Add Drivers}}&lt;br /&gt;
:This will add drivers to the set of properies related to the selected one.&lt;br /&gt;
:For example, it will add drivers to X, Y, and Z for Rotation.&lt;br /&gt;
&lt;br /&gt;
;{{Literal|Add Single Driver}}&lt;br /&gt;
:This will add a single driver to the selected property.&lt;br /&gt;
&lt;br /&gt;
[[File:Doc_Add_Driver2.PNG|center|frame|Add Single Driver.]]&lt;br /&gt;
&lt;br /&gt;
== Drivers Panel ==&lt;br /&gt;
&lt;br /&gt;
[[File:Doc_Animation_Panel_Drivers.PNG|frame|Graph Editor: Drivers: Drivers Panel.]]&lt;br /&gt;
&lt;br /&gt;
;This panel is for setting up the Driver Variables or Scripted Expression which determine the value of the Driver Value.&lt;br /&gt;
&lt;br /&gt;
==== Driver Settings ====&lt;br /&gt;
&lt;br /&gt;
;{{Literal|Update Dependencies}}: This will force an update for the Driver Value dependencies.&lt;br /&gt;
&lt;br /&gt;
;{{Literal|Remove Driver}}: Removes the driver from the object.&lt;br /&gt;
&lt;br /&gt;
;{{Literal|Type}}: The type of calculation to use on the Driver Variables.&lt;br /&gt;
&lt;br /&gt;
:;{{Literal|Average Value}}: Uses the the average value.&lt;br /&gt;
&lt;br /&gt;
:;{{Literal|Sum Values}}: Uses the the sum.&lt;br /&gt;
&lt;br /&gt;
:;{{Literal|Scripted Expression}}: Uses a Scripted Expression. See Expr.&lt;br /&gt;
::;This option does not use the variables, but they can be added to the scripted expression. &lt;br /&gt;
&lt;br /&gt;
:;{{Literal|Minimum Value}}: Uses the lowest value.&lt;br /&gt;
&lt;br /&gt;
:;{{Literal|Maximum Value}}: Uses the highest value.&lt;br /&gt;
&lt;br /&gt;
;{{Literal|Expr}}: Scripted Expression.&lt;br /&gt;
:Here you can add real numbers, math operators, math functions, python properties, driver functions.&lt;br /&gt;
:See Driver Expression below for some examples.&lt;br /&gt;
&lt;br /&gt;
;{{Literal|Show Debug Info}}: Shows the Driver Value.&lt;br /&gt;
:;The current value of the variables or scripted expression.&lt;br /&gt;
&lt;br /&gt;
;{{Literal|Add Variable}}: Adds a new Driver Variable.&lt;br /&gt;
&lt;br /&gt;
[[File:Doc_Animation_Driver_Single_Property.PNG|frame|Setup of a Single Property.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Doc_Animation_Driver_Transform_Channel2.PNG|frame|Transform Channel setup.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Doc_Animation_Driver_Distance.PNG|frame|Distance setup.]]&lt;br /&gt;
&lt;br /&gt;
==== Driver Variables ====&lt;br /&gt;
&lt;br /&gt;
;{{Literal|Name}}: Name to use for scripted expressions/functions.&lt;br /&gt;
:; No spaces or dots are allowed and must start with a letter.&lt;br /&gt;
&lt;br /&gt;
;{{Literal|Variable Type}}: The type of variable to use.&lt;br /&gt;
&lt;br /&gt;
:;{{Literal|Single Property}}: Use the value from some RNA property.&lt;br /&gt;
::;For example, the Ambient shading color from a material.&lt;br /&gt;
::;First select the type of ID-block, then the ID of the ID-block, then copy and paste an RNA property (Ctrl+V).&lt;br /&gt;
&lt;br /&gt;
::;{{Literal|ID-Type}}: The ID-Block type, example, Key, Image, Object, Material.&lt;br /&gt;
&lt;br /&gt;
::;{{Literal|ID}}: The ID of the ID-Block type, example, Material.001.&lt;br /&gt;
&lt;br /&gt;
::;{{Literal|RNA Path}}: The RNA id name of the propery, example, 'ambient' from material shading.&lt;br /&gt;
&lt;br /&gt;
:;{{Literal|Transform Channel}}: Use one of the Transorm channels from an object or bone.&lt;br /&gt;
&lt;br /&gt;
::;{{Literal|ID}}: ID of the object, example, Cube, Armature, Camera.&lt;br /&gt;
&lt;br /&gt;
::;{{Literal|Bone}}: ID of the Armature bone, example, Bone, Bone.002, Arma.r.&lt;br /&gt;
:::; This option is for armatures.&lt;br /&gt;
&lt;br /&gt;
::;{{Literal|Type}}: Example, X Location, X Rotation, X Scale.&lt;br /&gt;
&lt;br /&gt;
::;{{Literal|Space}}: World Space, Transform Space, Local Space.&lt;br /&gt;
&lt;br /&gt;
:;{{Literal|Rotational Difference}}: Use the rotational difference between two objects or bones.&lt;br /&gt;
&lt;br /&gt;
:;{{Literal|Distance}}: Use the distance between two objects or bones.&lt;br /&gt;
&lt;br /&gt;
;{{Literal|Value}}: Shows the value of the variable.&lt;br /&gt;
&lt;br /&gt;
{{clr}}&lt;br /&gt;
&lt;br /&gt;
== Driver Expression ==&lt;br /&gt;
&lt;br /&gt;
Here are some examples of using the scripted expression Expr to set the Driver Value.&lt;br /&gt;
&lt;br /&gt;
[[File:Doc_Animation_Driver_Object_Rotation.PNG|frame|Object Rotation.]]&lt;br /&gt;
&lt;br /&gt;
==== Object Rotation ====&lt;br /&gt;
&lt;br /&gt;
Here two drivers have been added to the Cube, X Location and Y Location.&lt;br /&gt;
&lt;br /&gt;
The scripted expressions are being used to set the object location.&lt;br /&gt;
&lt;br /&gt;
;{{Literal|X Location Expr}}: '''0+(sin(frame/8)*4)'''&lt;br /&gt;
:: '''(frame/8)''': is the current frame of the animation, divided by 8 to slow the rotation down.&lt;br /&gt;
:: '''(sin( )*4)''': This returns the sine of (frame/8), then multiplies by 4 for a bigger circle.&lt;br /&gt;
:: '''0+''': is used to control the X Location offset of the rotation.&lt;br /&gt;
;{{Literal|Y Location Expr}}: '''0+(cos(frame/8)*4)'''&lt;br /&gt;
:: '''(frame/8)''': is the current frame of the animation, divided by 8 to slow the rotation down.&lt;br /&gt;
:: '''(cos( )*4)''': This returns the cosine of (frame/8), then multiplies by 4 for a bigger circle.&lt;br /&gt;
:: '''0+''': is used to control the Y Location offset of the rotation.&lt;br /&gt;
&lt;br /&gt;
'''frame''' is the same as bpy.context.scene.frame_current.&lt;br /&gt;
&lt;br /&gt;
==== Driver Namespace ====&lt;br /&gt;
&lt;br /&gt;
;There is a list of built in driver functions and properties.&lt;br /&gt;
;These can be displayed via the python console.&lt;br /&gt;
&amp;lt;source lang=python&amp;gt;&amp;gt;&amp;gt;&amp;gt; bpy.app.driver_namespace['&lt;br /&gt;
                              __builtins__']&lt;br /&gt;
                              __doc__']&lt;br /&gt;
                              __loader__']&lt;br /&gt;
                              __name__']&lt;br /&gt;
                              __package__']&lt;br /&gt;
                              acos']&lt;br /&gt;
                              acosh']&lt;br /&gt;
                              asin']&lt;br /&gt;
                              asinh']&lt;br /&gt;
                              atan']&lt;br /&gt;
                              atan2']&lt;br /&gt;
                              atanh']&lt;br /&gt;
                              bpy']&lt;br /&gt;
                              ceil']&lt;br /&gt;
                              copysign']&lt;br /&gt;
                              cos']&lt;br /&gt;
                              cosh']&lt;br /&gt;
                              ..&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;This script will add a function to the driver namespace, which can then be used in the expression '''driverFunc(frame)'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=python&amp;gt;import bpy&lt;br /&gt;
&lt;br /&gt;
def driverFunc(val):&lt;br /&gt;
&lt;br /&gt;
    return val * val    # return val squared&lt;br /&gt;
&lt;br /&gt;
bpy.app.driver_namespace['driverFunc'] = driverFunc    # add function to driver_namespace&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
*[[Doc:2.6/Manual#Animation|Animation]]&lt;br /&gt;
*Animation Topics&lt;br /&gt;
*[[Doc:2.6/Manual/Animation/Editors/Graph|Graph Editor]]&lt;br /&gt;
*[[Doc:2.6/Manual/Animation/Editors/Graph/FCurves|F-Curves]]&lt;br /&gt;
*[[Doc:2.6/Manual/Extensions/Python|Extending Blender with python]].&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
*[http://www.python.org Python] and its [http://www.python.org/doc documentation].&lt;br /&gt;
*[http://functions.wolfram.com/ functions.wolfram.com]&lt;/div&gt;</summary>
		<author><name>wiki&gt;Koilz</name></author>
		
	</entry>
</feed>