This file contains 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
// source - https://www.iro.umontreal.ca/%7Efelipe/IFT2030-Automne2002/Complements/tinyc.c | |
// video - https://www.youtube.com/watch?v=aeMdrCdRXCU | |
/* file: "tinyc.c" */ | |
/* Copyright (C) 2001 by Marc Feeley, All Rights Reserved. */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
This file contains 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
import bpy | |
def quaternion_euler_all_bones(mode, start, end, on_obj): | |
for f in range(frame_start, frame_end +1): # Go from start to End | |
# for each rig bone in current frame | |
for bone in obj.pose.bones: | |
#don't forget to restore bone rotation mode for next keyframe | |
if mode == "EtoQ": | |
bone.rotation_mode = "XYZ" |