Skip to content
Snippets Groups Projects
Commit a7993160 authored by Nathan Vegdahl's avatar Nathan Vegdahl
Browse files

Update to the Rigify readme, so explain how to have a rig type generate a

python UI for the generated rig.
parent 123dd495
No related branches found
No related tags found
No related merge requests found
......@@ -236,3 +236,17 @@ especially with more complex samples. There is a function in utils.py
that will generate the code for create_sample() for you, based on a selected
armature. The function is called write_metarig()
GENERATING A PYTHON UI
----------------------
The generate() method can also, optionally, return python code as a string.
This python code is added to the "rig properties" panel that gets
auto-generated along with the rig. This is useful for exposing things like
IK/FK switches in a nice way to the animator.
The string must be returned in a list:
return ["my python code"]
Otherwise it won't work.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment