diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2021-07-06 21:50:41 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2021-07-06 21:57:11 +0300 |
commit | 046114b96a1c369886a55de0bf958bf7ac2ae5a1 (patch) | |
tree | 9e59df176aa3bb57658fbb88fe1679292b6f08dd /rigify/rig_lists.py | |
parent | 735cdeec78f654e20e63841c25e077c931242cc1 (diff) |
Rigify: add utility and operator classes for the upcoming face rigs.
- LazyRef utility class that provides a hashable field reference.
- NodeMerger plugin for grouping abstract points by distance.
- pose.rigify_copy_single_parameter operator for copying a single
property to all selected rigs that inherit from a specific class
(intended to be used via property panel buttons).
Diffstat (limited to 'rigify/rig_lists.py')
-rw-r--r-- | rigify/rig_lists.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rigify/rig_lists.py b/rigify/rig_lists.py index 49cc9545..ae7d9d00 100644 --- a/rigify/rig_lists.py +++ b/rigify/rig_lists.py @@ -80,6 +80,12 @@ def get_rigs(base_dir, base_path, *, path=[], feature_set=feature_set_list.DEFAU rigs = {} implementation_rigs = {} +def get_rig_class(name): + try: + return rigs[name]["module"].Rig + except (KeyError, AttributeError): + return None + def get_internal_rigs(): global rigs, implementation_rigs |