This file contains 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
from pymel.core import * | |
# AddCurve() | |
# Author: Jocelyn Kim | |
# Function: Adds a curve to a selection of joint(s), renames it with whatever suffix you want | |
# Get the joint(s) selected | |
selected = cmds.ls(sl=True) | |
win = window('Add Curve', width=100) |
This file contains 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
from pymel.core import * | |
# toggleLRA() | |
# Function: force toggles all Local Rotation Axis displays to be on or off, for all joints or for selected joints/transforms. | |
# Jocelyn Kim - repurposed script from benmorgantd's gist, bm_axisDisplay. Thank you!!! :) | |
win = window(title="Toggle Local Rotation Axis Displays", rtf=True) | |
layout = columnLayout() | |
chkBox = checkBox(label = "Display LRAs?", value = True, parent = layout) | |
btn = button(label = "TOGGLE!", parent = layout) |
This file contains 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
import pymel.core as pm | |
# mergeVerts() | |
# Author: Jocelyn Kim | |
# Function: Mass merge overlapping vertices on selected mesh(es) under a user-specified threshold | |
# 'meshes' is a list of all of the meshes in the user's selection | |
meshes = [x for x in [ thing for thing in pm.selected() if thing.getShape()] if x.getShape().nodeType() == 'mesh'] | |
# UI Layout |