This file contains hidden or 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
global float $BIGNUMBER_MINUS = 100; | |
global float $BIGNUMBER_PLUS = 1000; | |
global proc string stripNamespace(string $n){ | |
string $exp = "^.*:"; | |
string $new = `substitute $exp $n ""`; | |
return $new; | |
}; |
This file contains hidden or 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""" | |
# | |
# 指定パス以下の スクリプトを元にシェルフを動的作成 for maya | |
# | |
# ├─dyn_shelf_root | |
# │ ├─hoge_tab | |
# │ │ └─ スクリプト1.py | |
# │ │ └─ スクリプト2.py | |
# │ └─mage_tab | |
# └─ スクリプト3.py |
This file contains hidden or 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
import siutils | |
def expand_nodes(): | |
viewname = 'Schematic' | |
activelayout = Application.Desktop.ActiveLayout | |
v = activelayout.FindView( viewname ) | |
if v == None: | |
siutils.log('Creating new schematic...: %s' % (viewname)) |
This file contains hidden or 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
import re | |
import maya.cmds as cmds | |
exp = re.compile("_\w+Constraint\d*$") | |
liste = cmds.ls(exactType="transform", dag=True) | |
liste = filter(lambda x: not exp.search(x), liste) |
This file contains hidden or 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 -*- | |
# MotionBulider 用のユーティリティ関数集 | |
############################################################################### | |
import pyfbsdk as fb | |
#import pyfbsdk_additions as fb_add | |
############################################################################### | |
fbsys = fb.FBSystem() | |
app = fb.FBApplication() |
This file contains hidden or 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
import UnityEngine | |
import UnityEditor | |
import System | |
import System.IO | |
import System.Text.RegularExpressions | |
//--------------------------------------------------------------------------// | |
class Mot: | |
public name as string |
This file contains hidden or 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
function inspect_property(propname, width, height){ | |
view = Desktop.ActiveLayout.CreateView("Property Panel", propname); | |
view.BeginEdit(); | |
//view.Move(posx, posy) | |
view.Resize(width, height); | |
view.SetAttributeValue("targetcontent", propname); | |
view.EndEdit(); | |
} |
This file contains hidden or 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
import maya.cmds as cmds | |
import maya.mel as mel | |
DEFAULT_MAXIMUM_INFULENCE = 5 | |
############################################################################## | |
#1頂点に影響するジョイントの上限チェックする | |
############################################################################## | |
def check_maximum_influence(max=DEFAULT_MAXIMUM_INFULENCE): | |
res = [] |
This file contains hidden or 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
/* | |
* http://stackoverflow.com/questions/18279456/any-simplex-noise-tutorials-or-resources | |
*/ | |
/* | |
* A speed-improved simplex noise algorithm for 2D, 3D and 4D in kl. | |
* | |
* Based on example code by Stefan Gustavson ([email protected]). | |
* Optimisations by Peter Eastman ([email protected]). | |
* Better rank ordering method by Stefan Gustavson in 2012. |
This file contains hidden or 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
function select_execute(){ | |
var title = "実行ファイルを選択する"; | |
var initialDirectory = ""; | |
var fileFilter = "py|js|vbs"; | |
var filter = "Script Files(*.py;*.js;*.vbs)|*.py;*.js;*.vbs|All Files (*.*)|*.*||"; | |
fileBrowser = XSIUIToolkit.FileBrowser; | |
fileBrowser.DialogTitle = title; | |
fileBrowser.InitialDirectory = initialDirectory; |