Skip to content

Instantly share code, notes, and snippets.

@dskjal
Last active December 25, 2016 07:43
Show Gist options
  • Save dskjal/dcfd4d476fd1f03e965c672d57e1917d to your computer and use it in GitHub Desktop.
Save dskjal/dcfd4d476fd1f03e965c672d57e1917d to your computer and use it in GitHub Desktop.
Rigify show additional layer in picker
''' 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