Skip to content

Instantly share code, notes, and snippets.

Cecile Muller cecilemuller

Block or report user

Report or block cecilemuller

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cecilemuller / now.newer-properties.json
Last active Mar 17, 2020
Zeit Now: Long expiration date for static assets
View now.newer-properties.json
"version": 2,
"trailingSlash": true,
"headers": [
"source": "/(.*)\\.(js|css|map|json|ico)",
"headers" : [
"key" : "Cache-Control",
"value" : "public, max-age=31536000, immutable"
cecilemuller / tasks.json
Last active Jul 14, 2019
VSCode: Compile Typescript on file save
View tasks.json
"version": "2.0.0",
"tasks": [
"label": "Delete Output Folder",
"type": "shell",
"options": {
"cwd": "${workspaceRoot}"
cecilemuller / cubemap.bat
Created May 1, 2019
Generate a DDS cubemap from 6 JPEG images
View cubemap.bat
texassemble cube -w 1024 -h 1024 -o px.jpg nx.jpg py.jpg ny.jpg pz.jpg nz.jpg
texconv -m 0 -y -f BC1_UNORM
cecilemuller /
Last active Feb 6, 2020
Maxscript: ActiveShade
-- Open activeshade floater
actionMan.executeAction 0 "40701"
-- Close activeshade floater
-- Close activeshade floater (old version)
-- local children = UIAccessor.GetPopupDialogs()
-- for child in children do (
View photoshop-functions.js
/* eslint-env photoshop */
* New 3D Layer from File.
* @param {String} modelFilepath Absolute path to the 3D file
* Examples:
* `addLayer3D('C:\\example\\scene.wrl');`
* `addLayer3D('C:\\example\\scene.dae');`
* `addLayer3D('C:\\example\\scene.obj');`
cecilemuller /
Created Jan 5, 2019
Marmoset Toolbag: Get Shader ID
# There is no easy way to identify a shader from a MaterialSubroutine,
# so this tries to guess from the list of fields.
# However it cannot distinguish between:
# - "Lambertian" or "Unlit"
# - "Horizon Occlusion" or "Mirror" or "Blinn-Phong"
def getShaderId(material, subroutineId):
subroutine = material.getSubroutine(subroutineId)
cecilemuller /
Created Jan 3, 2019
Maxscript: get the Material Editor thumbnail for an arbitrary material
-- Reads the 88x88 thumbnail from Material Editor for an arbitrary material.
-- Note that it renders faster when the material editor is closed,
-- so you could call `MatEditor.Close()` first.
-- Parameters:
-- mat: a material instance (StandardMaterial, Universal_Material, etc..)
-- Returns:
-- a Bitmap or `undefined`
cecilemuller /
Last active Dec 26, 2018
Marmoset Toolbag: find material/object by name
import mset
# Smarter "findMaterial": doesn't print a message in the console
# or throw an error when the object to find doesn't exist.
def getMaterial(name, createIfNotFound=False):
found = None
objs = mset.getAllMaterials()
for obj in objs:
if == name:
found = obj
cecilemuller /
Created Dec 18, 2018
Marmoset Toolbag: Bake maps properties

Marmoset Toolbag: Bake maps properties


import mset

baker = mset.findObject("Baker")
baker.getMap("Normals").enabled = True
cecilemuller /
Last active Apr 28, 2019
Marmoset Toolbag: Shader subroutine fields
You can’t perform that action at this time.