Is there any possibility to adding a value beside expression in driven property? Formulas would be only in drivers window or not?
If I need add expression like:
self.location[0]+object.location[1]
< both value dependant
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.
Sign up to join this communityA shortcut to entering driver expressions is to start with a #
- so entering #frame*0.1
will create a driver expression that sets the value to 1/10th of the current frame. You can then edit drivers using the graph editor in driver mode.
Using the #
prefix works for some things that are available globally, like the current frame
and some math functions - sin()
, log()
, noise.random()
etc. To get a driver to depend on a transform channel or property, whether it is it's own property or another objects, you create driver variables and use them in your expression.
To see a full list of functions available within drivers, enter bpy.app.driver_namespace.keys()
into blenders python console.
You can also define your own functions and add them to the driver namespace as shown here.
Yes you can...
You have to have an empty driver 1st... (Via manually create later single)
Then you have to use a slightly different format, but it works...
I have a cube named 'c1' & 'c2':
I added the following line to the "z" location for 'c1' and hit enter.
3.0 + bpy.data.objects['c2'].location[2]
It worked!
'C2'
, you have to enter back into the 'z' location property of 'C1'
and hit enter to force the update.
$\endgroup$
Mar 7, 2018 at 19:23