Skip to content

Instantly share code, notes, and snippets.

View diegodelarocha's full-sized avatar
🐛

Diego De la Rocha diegodelarocha

🐛
View GitHub Profile
@NoelFB
NoelFB / routine.h
Last active November 7, 2022 07:19
Simple C++ Coroutine using a switch statement internally
#pragma once
namespace YourNamespace
{
struct Routine
{
// Current "waiting time" before we run the next block
float wait_for = 0;
// Used during `rt_for`, which repeats the given block for X time
@heybdj
heybdj / SetConstantTangents.cs
Created October 1, 2017 22:33
Set constant tangets on a Unity animation clip
// This script is published under the CC0 1.0 Universal License
// https://creativecommons.org/publicdomain/zero/1.0/
// To the extent possible under law, Spryly® Ltd. has waived all copyright
// and related or neighboring rights to this script. This work is published from: Canada.
using UnityEngine;
using UnityEditor;
using System.Collections;
public static class SetConstantTangents {
@benmorgantd
benmorgantd / bm_nurbsRibbon.py
Last active September 18, 2023 20:14
Nurbs Ribbon: create a ribbon in Maya with j drive joints and k bind joints. Useful for rigging lips, eyebrows, eyelids, forearms...
# bm_nurbsRibbon
import maya.cmds as cmds
# sets up a ribbon with j drive joints and k bind joints
class NurbsRibbon(object):
def __init__(self, numFollicles=6, numDrivers=3, name="nurbsRibbon"):
if numDrivers <= 1:
return