Skip to content

Instantly share code, notes, and snippets.

@melMass
melMass / AlembicPointCloudBinder.cs
Created Nov 16, 2020
Alembic Point Clouds to VFX Graph
View AlembicPointCloudBinder.cs
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.Formats.Alembic.Importer;
using UnityEngine.VFX;
using UnityEngine.VFX.Utility;
namespace MTB.VFX
{
View begin_thief
body{
background-color:white;
color:black;
font-family: "Helvetica";
font-size:1.5em;
}
h1>a{
View ProceduralMesh.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using static BMesh;
public class ProceduralMesh : MonoBehaviour
{
public float tilling
{
get { return _tilling; }
View CLI References.md

CLI References

Python

  • Pipenv:

    • pipenv --python [2.7|3.6] Install specific version of python
    • pipenv install --dev --skip-lock Install Dependencies and Dev Dependencies
    • pipenv run xxx Run command inside Virtual Env
View of360Stitcher_info.md

Insta360 One

Specs

notes: The bottom lens needs to be flipped horizontaly

blendAngle = 20;
FOV = 210;
mapFunction = (n) => {
  return -8.8568 * Math.pow(10,-9) * Math.pow(n, 4) + 1.1095 * Math.pow(10,-6) * Math.pow(n, 3) + -5.045 * Math.pow(10,-5) * Math.pow(n, 2) + 2.4317 * Math.pow(10,-2) * n; 
View hiero_to_ARC.md

What:

From current sequence containing ARI files, will output each sequences of ari to a file per shot, to be used with Ari ARC_CMD. The script also builds the batch file.

@melMass
melMass / edl_write.py
Created Dec 12, 2017
# Simple script to extract read nodes from the comp and sequence them to a one track EDL for DI
View edl_write.py
####################################
# File name: edl_write #
# Author: Mel Massadian #
# Submission: 12/12/17 #
####################################
import os
import sys
from timecode import Timecode
@melMass
melMass / MTB_normalize.c
Last active Jan 3, 2017
Simple normalize node in VEX for Houdini (Points)
View MTB_normalize.c
// NORMALIZE in VEX for Houdini
// Normalize input mesh (resize it to 1 unit) and centers it.
//INIT
vector min, max;
getbbox(min, max);
vector center = (min+max)/2;
vector size = set(max.x - min.x,max.y -min.y,max.z - min.z);
@melMass
melMass / 0_reuse_code.js
Created Nov 11, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View Simple Math Expressions .md

Fit Range

OldRange = (OldMax - OldMin)  
NewRange = (NewMax - NewMin)  
NewValue = (((OldValue - OldMin) * NewRange) / OldRange) + NewMin
You can’t perform that action at this time.