Skip to content

Instantly share code, notes, and snippets.

whaison whaison

Block or report user

Report or block whaison

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
@whaison
whaison / FragmentWithSurface.shader
Last active Mar 25, 2019 — forked from shop-0761/FragmentWithSurface.shader
Fragment と surface を一緒に使うやつ
View FragmentWithSurface.shader
Shader "Custom/fragmentWithSurface" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
}
SubShader {
Tags { "RenderType"="Opaque" }
@whaison
whaison / ShowBoundingBox.ms
Created Feb 19, 2017 — forked from deathponta/ShowBoundingBox.ms
【MaxScript】BoundingBoxの取得し最小値と最大値の位置にポイント配置
View ShowBoundingBox.ms
bb = NodeLocalBoundingBox $
bmax = bb[2]
bmin = bb[1]
Point pos:bmax box:off cross:on
Point pos:bmin box:off cross:on
@whaison
whaison / MELFiletoPythonFile_UTF-8_v00135_regex.py
Created Feb 17, 2017
MELFiletoPythonFile_UTF-8_v00135_regex.py
View MELFiletoPythonFile_UTF-8_v00135_regex.py
# -*- coding: cp932 -*-
import pymel.core as pm
import pymel.tools.mel2py as mel2py
import re
import math
import random
melCmd = """
@whaison
whaison / ImportScene\DisplayGlobalSettings_True_2017_lTimeModes_Array.py
Created Feb 16, 2017
ImportScene\DisplayGlobalSettings_True_2017_lTimeModes_Array.py
View ImportScene\DisplayGlobalSettings_True_2017_lTimeModes_Array.py
"""
Copyright (C) 2001 - 2010 Autodesk, Inc. and/or its licensors.
All Rights Reserved.
The coded instructions, statements, computer programs, and/or related material
(collectively the "Data") in these files contain unpublished information
proprietary to Autodesk, Inc. and/or its licensors, which is protected by
Canada and United States of America federal copyright law and by international
treaties.
@whaison
whaison / ue4_fbx_extention.T3D
Created Feb 14, 2017
ue4_fbx_extention.T3D
View ue4_fbx_extention.T3D
Begin Object Class=AnimSequence Name="ue4_fbx_extention"
Begin Object Class=FbxAnimSequenceImportData Name="FbxAnimSequenceImportData_0"
End Object
Begin Object Class=AnimCompress_BitwiseCompressOnly Name="AnimCompress_BitwiseCompressOnly_0"
End Object
Begin Object Name="FbxAnimSequenceImportData_0"
SourceAnimationName="Take 001"
End Object
Begin Object Name="AnimCompress_BitwiseCompressOnly_0"
End Object
@whaison
whaison / ue4_fbx_extention.COPY
Created Feb 14, 2017
ue4_fbx_extention.COPY
View ue4_fbx_extention.COPY
Begin Object Class=AnimSequence Name="ue4_fbx_extention"
Begin Object Class=FbxAnimSequenceImportData Name="FbxAnimSequenceImportData_0"
End Object
Begin Object Class=AnimCompress_BitwiseCompressOnly Name="AnimCompress_BitwiseCompressOnly_0"
End Object
Begin Object Name="FbxAnimSequenceImportData_0"
SourceAnimationName="Take 001"
End Object
Begin Object Name="AnimCompress_BitwiseCompressOnly_0"
End Object
View Cornell.osl
// -- Cornell.osl - Generate the Cornell box material ---------------
#include "stdosl.h"
#define POS_Y normal(0.0, 1.0, 0.0)
#define NEG_Y normal(0.0, -1.0, 0.0)
#define EPSILON 1e-5
surface Cornell(output closure color bsdf = 0)
{
color result = color(0, 1, 0);
@whaison
whaison / emily_material.osl
Last active Feb 12, 2017
emily_material.osl  |||| Open Shading Langage
View emily_material.osl
float phongExponent(float glossiness) {
return (1/pow(1-glossiness, 3.5)-1);
}
surface emily_material
(
string specularUnlitNormTexture="00_specular_unlit.exr",
string singleScatterTexture="00_single_scatter.exr",
string diffuseUnlitTexture="00_diffuse_unlit.exr",
float scatterRadius=0.5,
@whaison
whaison / DigitalEmily2_00100_2016-2017_Ascii_fbx_.fbx
Created Feb 12, 2017
DigitalEmily2_00100_2016-2017_Ascii_fbx_.fbx
View DigitalEmily2_00100_2016-2017_Ascii_fbx_.fbx
This file has been truncated, but you can view the full file.
; FBX 7.5.0 project file
; Copyright (C) 1997-2015 Autodesk Inc. and/or its licensors.
; All rights reserved.
; ----------------------------------------------------
FBXHeaderExtension: {
FBXHeaderVersion: 1003
FBXVersion: 7500
CreationTimeStamp: {
View git clone --recursive http_github.com_PySide_pyside2-setup.git.shell
Last login: Sun Feb 12 16:04:17 on ttys000
whaisonMacBookAir:~ whaison$ git clone --recursive https://github.com/PySide/pyside2-setup.git
2017-02-12 16:09:01.241 xcodebuild[22375:331398] [MT] PluginLoading: Required plug-in compatibility UUID E0A62D1F-3C18-4D74-BFE5-A4167D643966 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present in DVTPlugInCompatibilityUUIDs
Cloning into 'pyside2-setup'...
remote: Counting objects: 1275, done.
remote: Total 1275 (delta 0), reused 0 (delta 0), pack-reused 1275
Receiving objects: 100% (1275/1275), 385.63 KiB | 168.00 KiB/s, done.
Resolving deltas: 100% (777/777), done.
Submodule 'sources/pyside2' (https://github.com/PySide/pyside2.git) registered for path 'sources/pyside2'
Submodule 'sources/pyside2-examples' (https://github.com/PySide/pyside2-examples.git) registered for path 'sources/pyside2-examples'
You can’t perform that action at this time.