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 maya.cmds as cmds | |
icon = cmds.ls(sl=True) | |
iconShape = cmds.listRelatives(icon, s=True)[0] | |
cmds.setAttr( '{0}.lineWidth'.format(iconShape), 4, cb=True) |
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
''' | |
Renaming systems with muliptle pads | |
''' | |
# Getting Selected | |
# Determin if you want to work on selected or hierarchy. |
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
''' | |
Renaming Padding Systems | |
Loops - using the range command | |
''' | |
print('Using Range.') | |
# for loop using range | |
for i in range(10): |
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
''' | |
# Joint Naming | |
# - This one is a bit harder because the last name will change from 'bind' to 'waste' | |
# Naming Convention | |
# orientation, name, count, suffix | |
# ct_back_01_bind -> ct_back_02_waste | |
Gist Link: | |
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
''' | |
Renaming Part 2 - selection and loops | |
- Provided Scene (bloop_rename_01.ma) | |
''' | |
# Cluster Naming Convention | |
# SystemName_clusterName_count_suffix | |
# ctBack_crvClust_01_clust |
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
# Cluster Naming Convention | |
# SystemName_clusterName_count_suffix | |
# ctBack_crvClust_01_clust | |
system_name = 'ctBack' | |
cluster_name = 'crvClust' | |
count = 1 | |
suffix = 'clust' | |
#new_name = system_name + '_' + cluster_name |
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 | |
ori = ['lt', 'rt'] | |
name = ['index', 'ring', 'middle', 'pinky'] | |
finger_name = 'lt_index_01_bind' | |
hand_icon = 'lt_hand_icon' |
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 | |
# pm.Callback(get_hand_icon, min, max, dv) | |
win_width = 200 | |
hand_icon = '' | |
finger_joint = '' | |
finger_attr = 'index_curl' | |
def gui(): |
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 | |
class Hair_System: | |
''' | |
This is where helpfull info goes. | |
''' | |
def __init__(self): | |
''' |
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
# Creating an world FK Control system | |
# Create 4 World FK Controls | |
# Get Target Joint(s) | |
#current_joint = 'joint9' | |
# Get Selection |
NewerOlder