[PYTHON] Just add the driver to the shape key with blender

Extracted from the following page https://blender.stackexchange.com/questions/13905/add-driver-for-a-shapekey-via-python

import bpy

obj = bpy.context.active_object
driver = obj.data.shape_keys.key_blocks['Key 1'].driver_add("value")

Personal notes

Recommended Posts

Just add the driver to the shape key with blender
Just add the python array to the json data
How to Learn Kaldi with the JUST Corpus
Add information to the bottom of the figure with Matplotlib
How to create a submenu with the [Blender] plugin
[pyqtgraph] Add region to the graph and link it with the graph region
Create an example game-like stage with just the Blender 2.80 script
The usual way to add a Kernel with Jupyter Notebook
The story that the private key is set to 600 with chmod
Add fields to features with ArcPy
Memorandum (Add name only to people with the same surname in the list)
Add 95% confidence intervals on both sides to the diagram with Python / Matplotlib
[Blender] How to set shape_key with script
How to add a package with PyCharm
Just print the selected object in Blender
[Python] Round up with just the operator
In Jupyter, add IPerl to the kernel.
Add images to iOS photos with Pythonista
Just migrate the Discord.py 0.X echobot to 1.X
Add Gaussian noise to images with python2.7
Match the colorbar to the figure with matplotlib
The road to compiling to Python 3 with Thrift
How to use JDBC driver with Redash
How to get the key on Amazon S3 with Boto 3, implementation example, notes
Try to solve the fizzbuzz problem with Keras
Log in to the remote server with SSH
Mathematics memorandum to keep up with the field # 4
The easiest way to get started with Django
Crop the image to rounded corners with pythonista
How to specify the NIC to scan with amazon-dash
Convert data with shape (number of data, 1) to (number of data,) with numpy.
Add Windows to the Linux OS boot menu
Add rows to an empty array with numpy
I tried to save the data with discord
How to add arbitrary headers to response with FastAPI
The easiest way to synthesize speech with python
Try to solve the man-machine chart with Python
Specify the Python executable to use with virtualenv
When you want to update the chrome driver.
I wanted to play with the Bezier curve
How to try the friends-of-friends algorithm with pyfof
Say hello to the world with Python with IntelliJ
Bring your life to life procedurally with Blender scripts
The easiest way to use OpenCV with python
Mathematics memorandum to keep up with the field # 1
Introduction to Python with Atom (on the way)
Save the object to a file with pickle
Mathematics memorandum to keep up with the field # 2
Add / remove kernel to use jupyter with venv
[Wagtail] Add a login page to the Wagtail project
Mathematics memorandum to keep up with the field # 3
Automatic login to ServiceNow with Selenium Web Driver
Determine if the member should be set to the default string with just the or operator
The theory that the key to controlling infection with the new coronavirus is hyperdispersion of susceptibility
I just wanted to extract the data of the desired date and time with Django