Skip to content

Instantly share code, notes, and snippets.

global proc exportFbxWithName(){
string $path, $oSel[],$sel, $output;
string $result = `promptDialog
-title "ファイルパス"
-message "UE4向けにアセットを書き出す場所"
-button "OK" -button "Cancel"
-defaultButton "OK" -cancelButton "Cancel"
-dismissString "Cancel"`;
@land-Y
land-Y / gist:e59d70ab2a9ecb7c9cac806a74281972
Created January 4, 2020 05:51
「Xray」と「シェーディング時にワイヤフレーム」をトグルするプラグイン
#softimage
#PlugInフォルダに直接入れてください
#ショートカットからTOG_WireShadeを Shift+F TOG_WireShadeをShift+ctrl+Fに登録するとZbrush風になります
import win32com.client
from win32com.client import constants
null = None
false = 0
true = 1
app = Application
oSel = app.Selection
#選択オブジェクトのポリゴンを全て選択する
#選択ポリゴンの周囲エッジを選択
#ゴテツさんの厚みつけを適応する
#生成したエッジを選択してベベルを実行する
app.SelectGeometryComponents()
# -*- coding: utf-8 -*-
import maya.cmds as mc
class SymIns:
def __init__(self, oGr, oIns, oNull):
self.oGr = oGr
self.oIns = oIns
self.oNull = oNull
#シンメトリモデルの管理用ノードに親子付け
@land-Y
land-Y / GroupNull.py
Last active May 27, 2019 13:34
MAYA2019 選択したノードをロケーター、またはトランスフォームノードの子供にして纏める
# -*- coding: utf-8 -*-
import maya.cmds as mc
def GroupNull(oName,oNull):
oList = mc.ls(sl=True)
#もし何も選択してないならエラー
if oList == []:
print ("Need select Objects")
else:
@land-Y
land-Y / MirrorInstance2.py
Created May 27, 2019 09:14
左右対称複製。ペアレント構造でも名称が重複しない
# -*- coding: utf-8 -*
import maya.cmds as cmds
def MirrorMesh():
sellist = cmds.ls(selection=1,type="transform", l=1)
sellist = getMeshNode(sellist)
if len(cmds.ls("Sym_gr")) == 0:
parentLoc = cmds.spaceLocator()
parentLoc = cmds.rename(parentLoc,"Sym_gr")
else: