Skip to content

Instantly share code, notes, and snippets.

View melMass's full-sized avatar
Focusing

Mel Massadian melMass

Focusing
View GitHub Profile
@melMass
melMass / AlembicPointCloudBinder.cs
Created November 16, 2020 19:59
Alembic Point Clouds to VFX Graph
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
{
@melMass
melMass / README.md
Last active April 2, 2021 23:09
Nuke batch scripts

Batch Nuke

My collection of batch scripts for Nuke.

Generate SM

With the generate_smart_vector function you can batch load a video folder and generate the appropriate Smart Vectors for each of them.

# I use the interactive version but you can easily parse cli arguments and use execture (-x) instead

PaintCode Expressions

Operators

!b boolean logical negation of b
x * y numbers product of numbers x and y

@melMass
melMass / ffmpeg_cheatsheet.sh
Last active June 29, 2021 21:18
My most used ffmpeg command combination
# Convert all mov in $PWD to png sequences in subfolders
for x in *.mov; do mkdir "${x%.*}" && ffmpeg -i $x "${x%.*}"/"${x%.*}_%04d.png"; done
# H264 Animation
ffmpeg -i input.mov -c:v libx264 -pix_fmt yuv420p -movflags +faststart -preset veryslow -tune animation out.mp4;done
@melMass
melMass / tz
Created September 2, 2021 19:45
I am attesting that this GitHub handle melMass is linked to the Tezos account tz1auzguranCBAHCf6s8Nw27gDroPeopXDbJ for tzprofiles
sig:edsigtrY8SWWWzAWTAaWBUBAPpfnok2bPSGLbkyCxtd3jafa7ktoWrNKqYVGxfye8UucfdV52Ld3PSuEAy8XaFtsqC7WWfbSzUA
@melMass
melMass / ProceduralMesh.cs
Created June 8, 2020 16:21
BMesh Unity Sample
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using static BMesh;
public class ProceduralMesh : MonoBehaviour
{
public float tilling
{
get { return _tilling; }
@melMass
melMass / iso-edit.psm1
Last active May 1, 2022 18:16 — forked from jonathanelbailey/iso_image_edit.psm1
A PowerShell module to "modify" ISO images.
# this function grabs the iso image from the user supplied http location.
function Get-IsoImage {
[CmdletBinding()]
param(
$uri,
$workingfolder
)
begin {
$file_name = $uri -replace "http://[\s\S]+\/([\s\S]+\.iso)$", '$1'
$out_file = Join-Path $workingfolder -ChildPath $file_name
@melMass
melMass / pnpm.nu
Created October 26, 2022 17:33
(WIP) This is an half baked completion meant to ask further question to nushell's contributors.
# Installs a package.By default, any new package is installed as a prod dependency
export extern "pnpm add" [
]
# Generates a pnpm-lock.yaml from an npm package-lock.json (or npm-shrinkwrap.json) file
export extern "pnpm import" [
]
# Install all dependencies for a project
@melMass
melMass / link.nu
Created November 13, 2022 15:20
WIP Cross Link
@melMass
melMass / bpy_icons.json
Last active December 8, 2022 01:43
Blender 3.4 icons
[
"ACTION",
"ACTION_TWEAK",
"ADD",
"ALIASED",
"ALIGN_BOTTOM",
"ALIGN_CENTER",
"ALIGN_FLUSH",
"ALIGN_JUSTIFY",
"ALIGN_LEFT",