Skip to content

Instantly share code, notes, and snippets.

View bitinn's full-sized avatar
🔜
Personal Project

David Frank bitinn

🔜
Personal Project
View GitHub Profile
@bitinn
bitinn / .bash_profile
Last active November 22, 2016 17:25
Using kneesocks as bash command
alias npm-proxy='launchctl start com.dev.proxy'
alias npm-direct='launchctl stop com.dev.proxy; npm config delete proxy; npm config delete https-proxy'
@bitinn
bitinn / AMTNormalsLT.mel
Created August 13, 2017 09:23
AMT Normal Tools Lite for Mac
// AMT Normal Tools Lite
//
// Copyright (c) 2017 Adnan Chaumette "fansub"
// http://polycount.com/discussion/183993/maya-free-face-weighted-vertex-normals-tool/
//
// Re-indented and Tested on Mac with Maya LT 2017, by David Frank "bitinn"
// Install guide for mac users:
//
// Put "AMTNormalsLT" folder under this folder
@bitinn
bitinn / TestScript.mel
Created August 23, 2017 04:18
TestScript.mel
// REMEMBER TO SOURCE THIS, NOT RUN IN THE SCRIPT EDITOR DIRECTLY
{
string $TEST_STRING = "TEST_STRING_#";
proc RunLocal1 () {
print($TEST_STRING);
}
proc RunLocal2 (string $Input) {
print($Input);
@bitinn
bitinn / TestScriptNoLocalVar.mel
Created August 23, 2017 06:13
TestScriptNoLocalVar.mel
// REMEMBER TO SOURCE THIS, NOT RUN IN THE SCRIPT EDITOR DIRECTLY
{
proc string GetTestString () {
return "TEST_STRING_#";
}
proc RunLocal1 () {
print(GetTestString());
}
@bitinn
bitinn / BasicTemplate.mel
Created September 10, 2017 10:04
MEL Template
//
// Script Name: Basic Template
//
// 2017 David Frank / Public Domain
//
/*
Helper procedures
makes maya MEL life easier
@bitinn
bitinn / update.md
Last active January 22, 2018 18:06
Anime Update 2018-01-23

原评价出处:https://bitinn.net/11509/

更新下我首集预览的推荐和保留List——

魔卡少女樱 透明卡篇

三颗星彩色冒险

弃(为什么不好笑)

@bitinn
bitinn / unlit.shader
Created January 24, 2018 04:05
Amplify Shader Template Example
Shader /*ase_name*/ "AST/Extended Unlit" /*end*/
{
Properties
{
_MainTex ("Sprite Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
/*ase_props*/
}
SubShader
@bitinn
bitinn / UISubmitInput.cs
Created March 1, 2018 15:38
Fake OnSubmit for Input Field
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
namespace BeginHQ.Utility {
/*
redirect submit event to parent
*/
@bitinn
bitinn / output.txt
Created March 19, 2018 06:36
console output
source dp_MaterialManager.mel;
materialManager;
// Error: "source dp_materialManager.mel;\n\
//
// Error: "/Users/df/Library/Preferences/Autodesk/maya/2018LT/prefs/scripts/dp_MaterialManager.mel" line 2250.1: Unterminated string. //
// Error: deleteUI mmDockWindow; \n\
//
// Error: "/Users/df/Library/Preferences/Autodesk/maya/2018LT/prefs/scripts/dp_MaterialManager.mel" line 2252.25: Syntax error //
// Error: deleteUI materialManagerWindow; \n\
//
@bitinn
bitinn / example.shader
Created May 1, 2018 13:16
shader debug
Shader "Leocities/Tileable"
{
Properties
{
_BaseColorMask("BaseColor Mask", 2D) = "white" {}
_NormalMetallicRoughness("Normal Metallic Roughness", 2D) = "black" {}
[Toggle]_UseDecal("Use Decal", Range( 0 , 1)) = 1
[Toggle]_UseDecalNormal("Use Decal Normal", Range( 0 , 1)) = 1
_DecalBackgroundColor("Decal Background Color", Color) = (0,0,0,0)
_DecalForegroundColor("Decal Foreground Color", Color) = (1,1,1,0)