Skip to content

Instantly share code, notes, and snippets.

View whaison's full-sized avatar

whaison whaison

View GitHub Profile
@whaison
whaison / DirectoryHaveReCaller.cs
Last active September 7, 2015 07:47
除外ファイル対応がまちがっていたので直した
using UnityEngine;
using System;
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
public class DirectoryHaveReCaller {
public static List<string> OutOfContentsFolderList;
public static List<string> OutOfContentsExtentionList;
@whaison
whaison / FindAllPropatiesAndWrite.cs
Last active November 2, 2015 09:50
SerializedObject
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System;
using System.Runtime.CompilerServices;
public class PassObject :object
{
@whaison
whaison / SelectMaterialName_boxed_png24_InputNodeFrameDataFind5vu.mel
Last active November 25, 2015 09:47
mel で offsetUとoffsetVのanimationをmaterial から吸い出します。
//select -r nurbsSphere1 ;
select `ls `;
hyperShade -smn;
string $materialNameStr[];
$materialNameStr= `ls -sl`;
//$materialNameStr =`ls -long`;
print("\n $materialNameStr=");
print($materialNameStr);
string $materialNameStr0=$materialNameStr[0];
print("\n $materialNameStr0=");
@whaison
whaison / save_txt.mel
Created November 25, 2015 09:53
melでテキスト書き込むスクリプト
string $list = "";
string $str[]={"a","b","c","d" };
for($val in $str)
{
$list+=($val+"\n");
}
print $list;//ここはチェック用に表示してるだけ
//ここから書き込みスクリプト。
@whaison
whaison / SelectMaterialName_boxed_png24_InputNodeFrameDataFind6vu_global.mel
Created November 27, 2015 01:16
SelectMaterialName_boxed_png24_InputNodeFrameDataFind6vu_global.mel
//select -r nurbsSphere1 ;
select `ls `;
hyperShade -smn;
string $materialNameStr[];
$materialNameStr= `ls -sl`;
//$materialNameStr =`ls -long`;
print("\n $materialNameStr=");
print($materialNameStr);
string $materialNameStr0=$materialNameStr[0];
print("\n $materialNameStr0=");
@whaison
whaison / SelectMaterialName_boxed_png24_InputNodeFrameDataFind8vu_global_data_save.mel
Created November 27, 2015 02:52
SelectMaterialName_boxed_png24_InputNodeFrameDataFind8vu_global_data_save.mel
////////////////////////////////////////////
/////////////////////////////////////////////
/////////////////////////////////////////////
////////////////////////////////////////////
//string $myCone[] = `cone`;
//setKeyframe -time 0 -time 5 -time 10 -attribute tx -v 5 $myCone[0];
//setKeyframe -time 2 -time 7 -time 12 -attribute ty -v 10 $myCone[0];
//setKeyframe -time 4 -time 9 -time 14 -attribute tz -v 15 $myCone[0];
//selectKey -time 5 -time 12 -time 4;
//selectKey -animation objects -add -time 14;
Shader "NewUnlitShader02"
{
Properties
{
_MainTex ("RenderTex", 2D) = "white" {}
_DecalATex ("DecalATex", 2D) = "white" {}
_DecalBTex ("DecalBTex", 2D) = "white" {}
}
SubShader
{
Shader "NewUnlitShader03"
{
Properties
{
_MainTex ("RenderTex", 2D) = "white" {}
_GrandTex ("_GrandTex", 2D) = "white" {}
_DecalATex ("DecalATex", 2D) = "white" {}
_DecalBTex ("DecalBTex", 2D) = "white" {}
_DecalCTex ("_DecalCTex", 2D) = "white" {}
}
Shader "SelectDecalMap3" {
Properties {
_MainTex ("RenderTex", 2D) = "white" {}
_GrandTex ("_GrandTex", 2D) = "white" {}
_DecalATex ("_DecalATex", 2D) = "white" {}
_DecalBTex ("_DecalBTex", 2D) = "white" {}
_DecalCTex ("_DecalCTex", 2D) = "white" {}
}
SubShader {
using UnityEngine;
using System.Collections;
public class ShadowScript3 : MonoBehaviour {
public Camera shadowCamera;
public GameObject shadow;
Texture texRed;
Texture texGreen;
Texture texBlue;