This file contains hidden or 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
""" | |
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) |
This file contains hidden or 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
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 |