i3d: Open current folder in explorer Get link Facebook X Pinterest Email Other Apps - March 09, 2019 i3d: Open current folder in explorer Open a current folder in windows explorer. Command: import i3d;from i3d_utility import windowsOps as iWO;iWO().openExplorer("currentDir"); Prerequisites: Download i3d pyc files. Get link Facebook X Pinterest Email Other Apps Comments
MP: Relocate Maya window that has gone off-screen - March 14, 2025 w= 1000; h= 500; for item in cmds.lsUI(windows=True): if item=="MayaWindow": cmds.window(item,e=True,te=10,le=10,wh=[w,h]); Read more
Python: Extract numbers from a string - April 07, 2017 #Python: Extract numbers from a string import re; string = "rootNode218|parentNode001|polygonModel.vtx[627]"; list = re.findall(r'\d+', string ); # ['218', '001', '627']; Read more
HIK: Getting current character and current source. - June 01, 2021 class HIK: def getCurrentCharacter(self): import maya.cmds as mc; currentCharacterLabel= False; currentCharacterIndex= mc.optionMenuGrp("hikCharacterList",q=1,sl=1); items= mc.optionMenuGrp("hikCharacterList",q=1,itemListLong=1); currentCharacterItem= items[currentCharacterIndex-1]; currentCharacterLabel= mc.menuItem(currentCharacterItem,q=1,label=1); if not mc.objExists(currentCharacterLabel): currentCharacterLabel= None; elif mc.nodeType(currentCharacterLabel)!="HIKCharacterNode": currentCharacterLabel= None; return(currentCharacterLabel); def getCurrentSource(self): import maya.cmds as mc; currentSourceLabel= False; currentSou... Read more
Comments
Post a Comment