Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
a7993160
Commit
a7993160
authored
14 years ago
by
Nathan Vegdahl
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rigify/README
+14
-0
14 additions, 0 deletions
rigify/README
with
14 additions
and
0 deletions
rigify/README
+
14
−
0
View file @
a7993160
...
...
@@ -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.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment