Skip to content

Commit

Permalink
- Fix Rig Layers selection (selset)
Browse files Browse the repository at this point in the history
  • Loading branch information
schroef committed Jun 4, 2020
1 parent 0d7e201 commit cdde5f5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.

## [0.0.8] - 2020-06-03
### Fix
- Rig layers set selection code


## [0.0.7] - 2020-05-27
### Changed
- Update panel layout, bigger add preset button
Expand Down Expand Up @@ -42,11 +47,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
<!--### Official Rigify Info-->

[0.0.8]:https://github.com/schroef/Rigify-Save-Presets/releases/tag/v0.0.8
[0.0.7]:https://github.com/schroef/Rigify-Save-Presets/releases/tag/v0.0.7
[0.0.6]:https://github.com/schroef/Rigify-Save-Presets/releases/tag/v0.0.6
[0.0.5]:https://github.com/schroef/Rigify-Save-Presets/releases/tag/v0.0.5
[0.0.4]:https://github.com/schroef/Rigify-Save-Presets/releases/tag/v0.0.4
[0.0.3]:https://github.com/schroef/Rigify-Save-Presets/releases/tag/v0.0.3
[0.0.2]:https://github.com/schroef/Rigify-Save-Presets/releases/tag/v0.0.2
[0.0.1]:https://github.com/schroef/Rigify-Save-Presets/releases/tag/v0.0.1

[0.0.1]:https://github.com/schroef/Rigify-Save-Presets/releases/tag/v0.0.1
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This addon makes it possible to save rig setup to a preset folder. The function

The added presets can then be loaded directly using the add menu. To get the new preset to show, you need to either restart blender or reload the all the addons pressing F8. Its also now possible save Rigify main settings as presets. These can be loaded at any time, no need for a refresh.

!['Example Rig Presets'](https://raw.githubusercontent.com/wiki/schroef/rigify/images/rigify-save-presets-v007.png?v27-05-2020)
!['Example Rig Presets'](https://raw.githubusercontent.com/wiki/schroef/rigify/images/rigify-save-presets-v008.png?v03062020)


## Rigify Addon
Expand All @@ -31,8 +31,6 @@ It is important to note that Rigify only automates the creation of the rig contr

### Installation Process

>this addon requires <b>Rigify</b> to be active
1. Download the latest <b>[release](https://github.com/schroef/rigify-save-presets/releases/)</b>
2. If you downloaded the zip file.
3. Open Blender.
Expand All @@ -41,6 +39,7 @@ It is important to note that Rigify only automates the creation of the rig contr
6. Select the file `rigify-master.zip` from your download location..
7. Activate the checkbox for the plugin that you will now find in the list.

>this addon requires <b>Rigify</b> to be active
>Older 2.79 version can be found in this branch: <b>[Rigify-Save-Presets bl2.79](https://github.com/schroef/Rigify-Save-Presets/tree/bl-279)</b>

Expand Down
6 changes: 3 additions & 3 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

bl_info = {
"name": "Rigify Save Presets",
"version": (0, 0, 7),
"version": (0, 0, 8),
"author": "Rombout Versluijs",
"blender": (2, 80, 0),
"description": "Makes is easier to save rig presets to Rigify folder",
Expand Down Expand Up @@ -65,11 +65,11 @@ def write_rig_settings(obj, layers=False, func_name="create", groups=False):
for i in range(len(arm.rigify_layers)):
name = arm.rigify_layers[i].name
row = arm.rigify_layers[i].row
set = arm.rigify_layers[i].set
selset = arm.rigify_layers[i].selset
group = arm.rigify_layers[i].group
code.append('arm.rigify_layers[' + str(i) + '].name = "' + name + '"')
code.append('arm.rigify_layers[' + str(i) + '].row = ' + str(row))
code.append('arm.rigify_layers[' + str(i) + '].set = ' + str(set))
code.append('arm.rigify_layers[' + str(i) + '].selset = ' + str(selset))
code.append('arm.rigify_layers[' + str(i) + '].group = ' + str(group))

#print(code)
Expand Down

0 comments on commit cdde5f5

Please sign in to comment.