Skip to content

Instantly share code, notes, and snippets.

@aftamat4ik
aftamat4ik / tinyc.c
Last active August 6, 2024 11:53
c compiler inside one short file - tinyc
// 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>
@aftamat4ik
aftamat4ik / euler_to_quat.py
Last active October 24, 2021 08:30
Blender quaternion to euler conversion functions
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"