Skip to content

Instantly share code, notes, and snippets.

"""
This is a code version of the rig animation technique shown by `blenderBinge` in
https://www.youtube.com/watch?v=K02hlKyoWNI - consider it a thankyou for teaching
us how to.
"""
import bpy
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
1. Figure out if all values in a list are True
areTrue :: [Bool] -> Bool
areTrue xs = (length [x|x<-xs, x==True]) == length xs
2. Concatenate a list of lists.
concat :: [[a]] -> [a]
concat xss = [x | xs<-xss, x<-xs]
Main.concat [[1,3], [2,4]]
3. Produce a list with n identical elements