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 -*- | |
import sys | |
import maya.OpenMayaMPx as omMPx | |
import maya.OpenMaya as om | |
kPluginCmdName = 'printPaths' | |
class printPathsCmd(omMPx.MPxCommand): |
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 maya2015 | |
from PySide import QtGui, QtCore | |
from maya import OpenMayaUI as omUI | |
from shiboken import wrapInstance | |
from PySide.QtUiTools import QUiLoader | |
from maya.app.general.mayaMixin import MayaQWidgetBaseMixin | |
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 proc points2Polys() | |
{ | |
string $instancer; | |
string $sel[] = `ls -sl`; | |
if ($sel[0] == "" || `nodeType $sel[0]` != "instancer") | |
error "select instancer"; | |
$instancer = $sel[0]; | |
// PARTICLES VARIBLES | |
string $particleObjects[] = `listConnections ($instancer + ".inputPoints")`; |
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 -*- | |
import sys | |
import subprocess | |
import time | |
from PySide import QtCore, QtGui | |
from PySide.QtUiTools import QUiLoader | |
def load_ui(widget, ui_file): |
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 | |
import sys | |
from PySide import QtGui | |
class ColumnWidget(QtGui.QWidget): | |
def __init__(self, parent=None): | |
super(ColumnWidget, self).__init__(parent) |
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
# msys2 install | |
http://www.msys2.org/ | |
# msys2のアップデート | |
pacman -Syu | |
強制終了 | |
pacman -Syu | |
# GTK |
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
" ctrlp | |
NeoBundle 'ctrlpvim/ctrlp.vim' | |
NeoBundle 'rking/ag.vim' | |
let g:ctrlp_mruf_max = 500 " MRUの最大記録数 | |
let g:ctrlp_extensions = ['buffertag', 'dir', 'line', 'mixed'] | |
let g:ctrlp_show_hidden = 1 | |
set wildignore+=*/.git/*,*/.hg/*,*/.svn/* " Linux/MacOSX | |
" set wildignore+=*\\.git\\*,*\\.hg\\*,*\\.svn\\* " Windows ('noshellslash') | |
if executable('ag') " agが使える環境の場合 |
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
NeoBundle 'tomasr/molokai' | |
colorscheme molokai | |
set t_Co=256 | |
hi NonText ctermfg=0 guifg=#333333 | |
hi SpecialKey ctermfg=0 guifg=#333333 | |
" ==== start MyAutoCmd ==== | |
" http://lambdalisue.hatenablog.com/entry/2013/06/23/071344 |
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
#/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import os | |
import datetime | |
BASE_DIR = './backup' | |
MOST_DAYS = 3 | |
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
#/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import os | |
import datetime | |
BASE_DIR = './backup' | |
MOST_DAYS = 3 | |