Last active
December 25, 2016 07:43
-
-
Save dskjal/dcfd4d476fd1f03e965c672d57e1917d to your computer and use it in GitHub Desktop.
Rigify show additional layer in picker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' old code | |
# Create list of layer name/row pairs | |
layer_layout = [] | |
for l in metarig.data.rigify_layers: | |
print( l.name ) | |
layer_layout += [(l.name, l.row)] | |
end old code''' | |
# new code | |
# Create list of layer name/row pairs | |
layer_layout = [] | |
layer_count = 0 | |
for l in metarig.data.rigify_layers: | |
print( l.name ) | |
layer_layout += [(l.name, l.row)] | |
additional_layer_start = 18 if isPitchipoy(metarig) else 17 | |
if layer_count > additional_layer_start and len(l.name) > 0: | |
#metarig may have white space name | |
if len( l.name.replace(' ','') ) > 0: | |
vis_layers[layer_count] = True | |
layer_count += 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment