Skip to content

Instantly share code, notes, and snippets.

@gabrielmontagne
gabrielmontagne / .gitignore
Last active January 20, 2024 15:25
Bake Faceit / Audio2Face animations directly to a rig (for example Rigify) without having to bake shapekeys
.mypy_cache
@gabrielmontagne
gabrielmontagne / remap.py
Last active September 2, 2021 20:51
AutoRig Pro vs Rigify vs Cascadeur retarget
import bpy
def list():
s = bpy.context.scene
m = s.bones_map
with open('source.csv', 'w') as o:
for i in m:
print(i.name)
o.write(i.name + '\n')
@gabrielmontagne
gabrielmontagne / split_strips.py
Created January 1, 2020 22:16
Split VSE strips en Python, usando un text de input
import bpy
text = 'parts.adoc'
def split_from_text(text):
lines = [l.body.strip() for l in bpy.data.texts[text].lines if l.body.strip()]
split_sequence(lines)
def split_sequence(lines=['aaa', 'bbb', 'cccc']):
parts = len(lines)
@gabrielmontagne
gabrielmontagne / interpolator.js
Created December 3, 2018 13:42
Quick and dirty RxJS 5 animation interpolator
function createTransition$(start, duration=1000, interval=250, interpolator=linear) {
const ticks = duration / interval
let current = start
const to$ = new Subject()
const out$ = to$.switchMap(
t => {
const int = interpolator(current, t)
return Observable.interval(interval).take(ticks).map(t => (t + 1)/ticks)
.startWith(0)
.map(int)
@gabrielmontagne
gabrielmontagne / .block
Created March 9, 2017 15:54
Zambezi grid -- crosshairs component
license: mit
@gabrielmontagne
gabrielmontagne / .block
Last active February 16, 2020 07:05
Zambezi Grid -- active row component
license: mit
height: 1000
@gabrielmontagne
gabrielmontagne / .block
Last active March 23, 2017 17:23
Zambezi Grid -- row grouping around predefined rows
license: mit
@gabrielmontagne
gabrielmontagne / .block
Last active March 17, 2017 11:19
Zambezi grid: Cell selection components
license: mit
height: 1000
@gabrielmontagne
gabrielmontagne / .block
Last active January 11, 2017 10:28
Zambezi Grid -- edit cell values
license: mit
@gabrielmontagne
gabrielmontagne / .block
Last active January 10, 2017 17:18
Zambez Grid -- run header components
license: mit