Skip to content

Instantly share code, notes, and snippets.

@anthonyesau
anthonyesau / click-toggle.js
Last active July 31, 2016 21:44
Click Toggle
$('[data-target]' ).click(function() {
var target = $(this).data('target');
if (target == 'parent') {
target = $(this).parent();
} else if (target == 'child' || target == 'children') {
target = $(this).children();
} else if (target == 'sibling' || target == 'siblings') {
target = $(this).siblings();
}
var change = $(this).data('change');
@anthonyesau
anthonyesau / convert_anim.py
Created October 18, 2015 02:15 — forked from pink-vertex/convert_anim.py
Applies parent inverse matrix to the child's local matrix.
import bpy
import mathutils
class Converter:
def __init__(self, ob, logging=False):
self.ob = ob
self.action = ob.animation_data.action
self.rot_mode = ob.rotation_mode
self.logging = logging