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.cmds as cmds | |
import maya.api.OpenMaya as om | |
def getPointAtUV(U,V): | |
u""" | |
概要: | |
選択したDAGノードのUV値からワールド位置情報を取得。 | |
例 : getPointAtUV(0.5,0.5) |
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
''' | |
# ショートカットキーを押した時、押している間、離した時に何かをするスクリプト | |
# このスクリプト起動時のキー押下状態保存してそのキーの持続状態を判定している | |
# | |
# 持続時間中に何かをするのでないのであれば、このようなスクリプトを使用するの | |
# でなく素直に2つコマンド用意し同じキーに on press / on release としてそれぞれ | |
# のコマンドを割り当てるほうが良い | |
# | |
# winapi 使用するので win 専用 | |
# |
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 -*- | |
# MotionBulider 用のユーティリティ関数集 | |
############################################################################### | |
import pyfbsdk as fb | |
#import pyfbsdk_additions as fb_add | |
############################################################################### | |
fbsys = fb.FBSystem() | |
app = fb.FBApplication() |
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 sys | |
from PySide import QtGui, QtCore | |
u""" サンプルデータ """ | |
title = ["hoge", "fuga", "piyo"] | |
data = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] |
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 PySide import QtCore, QtGui | |
from shiboken import wrapInstance | |
import maya.OpenMayaUI as apiUI | |
import sys | |
def getMayaWindow(): | |
""" | |
Get the main Maya window as a QtGui.QMainWindow instance | |
@return: QtGui.QMainWindow instance of the top level Maya windows | |
""" |
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
#/usr/bin/env python | |
# encoding: utf-8 | |
import os | |
import sys | |
import atexit | |
import json | |
import time | |
import tempfile | |
import wave |