Skip to content

Instantly share code, notes, and snippets.

View FFHstudioHugo's full-sized avatar

Hugo Kostic FFHstudioHugo

View GitHub Profile
@FFHstudioHugo
FFHstudioHugo / bm_componentToJoint.py
Created March 28, 2025 12:06 — forked from benmorgantd/bm_componentToJoint.py
Maya script that creates joints on each selected vertex or at the center of each selected edge or face.
import maya.cmds as cmds
def componentToJoint():
if cmds.objectType(cmds.ls(sl=1)[0]) != "mesh":
return
# return the selection as a list
selList = getSelection()
print selList
componentType = selList[0][selList[0].index(".") + 1:selList[0].index("[")]