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
// 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 ); | |
} |
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
// c++ setWeights(),setWeight() | |
// http://ueta.hateblo.jp/entry/2015/08/24/102937 | |
// | |
// usage:command plugin | |
// | |
void n(MString name, MDagPath &dp){ | |
MSelectionList sellist; | |
MGlobal::getSelectionListByName( name , sellist ); | |
sellist.getDagPath( 0 , dp ); |
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
# python api1.0 getWeight(),setWeights() | |
# http://ueta.hateblo.jp/entry/2015/08/24/102937 | |
import time | |
import maya.OpenMaya as OpenMaya | |
import maya.OpenMayaAnim as OpenMayaAnim | |
#_time = time.time | |
_time = time.clock |
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
# python api2.0 setWeights(),setWeight() | |
# http://ueta.hateblo.jp/entry/2015/08/24/102937 | |
import time | |
import maya.api.OpenMaya as OpenMaya2 | |
import maya.api.OpenMayaAnim as OpenMayaAnim2 | |
#_time = time.time | |
_time = time.clock |
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
"--------------------------------------------------------------------------- | |
" SendToMayaについて | |
" | |
" vim から maya にスクリプトを投げることができます。ユーザー定義の _vimrc | |
" などにコピペしてご使用ください。 | |
" | |
" できること | |
" ビジュアルモードで選択した行だけ実行する。 | |
" エラーを受け取って vim で表示する。(日本語対応) | |
" |