This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// index.html は Assets/StreamingAssetsにあるとする. | |
// Android | |
// HTMLをテキストとして送る. -> ださい | |
www = new WWW("jar:file://" + Application.dataPath + "!/assets/index.html"); // this is the path to your StreamingAssets in android | |
yield www; | |
if(www.isDone){ | |
WebMediator.LoadData(www); // 独自で追加したメソッド, ネイティブプラギン側でWebView.loadData呼び出してる. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
T = 2T_{AABB} + \frac{A(S_1)}{A(S)}N(S_1)T_{tri} + \frac{A(S_2)}{A(S)}N(S_2)T_{tri} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import maya.OpenMaya as om | |
import maya.OpenMayaMPx as omPx | |
import math | |
class sinWave(omPx.MPxNode): | |
kPluginNodeTypeName = "sinWave" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Collections.Generic; | |
using System.Linq; | |
/// <summary> | |
/// 「Window/SerializedObject Editor」で起動。 | |
/// 選択中のObjectと関連ObjectからSerializedObjectを作ってPropertyを全て表示する。 | |
/// </summary> | |
public class SerializedObjectEditor : EditorWindow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#---------Reconstruct Subdiv Script for Maya---------- | |
#Script by - Kanishk Chouhan | |
#Email - kanishk2391@gmail.com | |
#Blog - www.pixel-architect.blogspot.com | |
#Description - | |
#This script allows u to reverse the result of smooth operation in maya after deleting the history | |
#It also preserves the original UV of the mesh | |
#Select the mesh u want to unsmooth and execute the script | |
#Script might take some time to execute depending on the polycount... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "cudaTest.h" | |
CudaTest::CudaTest() | |
{ | |
} | |
void* CudaTest::creator() | |
{ | |
return new CudaTest; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"検索をファイルの先頭へ循環しない | |
set nowrapscan | |
"大文字小文字の区別なし | |
set ignorecase | |
"検索時に大文字を含んでいたら大/小を区別 | |
set smartcase | |
"検索対象をハイライト |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from maya import OpenMaya | |
from pymel.core import * | |
import math | |
class UvCoord(object): | |
def __init__(self, u, v): | |
self.u = u | |
self.v = v | |
def dist(self, uv): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 何らかの理由でbatchレンダリングがうまくいかない、Maya HWだと何故かレンダリングが遅い、みたいなときに便利なスクリプト | |
# 連番をRender View上でレンダリングします | |
# Progress window付きでキャンセルすることが可能ですが、なぜかRender Viewの下に隠れてしまうので上手いことやらないとキャンセル出来ないので要注意 | |
from pymel.core import * | |
from maya import mel | |
import math | |
preroll_start = None | |
s = int(playbackOptions(q=True, min=True)) # start frame | |
e = int(playbackOptions(q=True, max=True)) # end frame |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// c# setWeights(),setWeight() | |
// http://ueta.hateblo.jp/entry/2015/08/24/102937 | |
private void n(string name, ref MDagPath dp) | |
{ | |
MSelectionList sellist = new MSelectionList(); | |
MGlobal.getSelectionListByName( name, sellist ); | |
sellist.getDagPath( 0 , dp ); | |
} |
OlderNewer