Skip to content

Instantly share code, notes, and snippets.

View williamyap912's full-sized avatar

williamyap912

View GitHub Profile
from __future__ import division
import maya.cmds as my
import pymel.core as pm
def padding( *args ):
list = pm.ls( sl=True )
num_name_delete = pm.intField(intFieldEntry_num_name_delete, editable = True, query = True, value = True )
import pymel.core as pm
import maya.mel as mel
import re
'''
Radio button for point lock activation
'''
def button_base( *args ) :
import pymel.core as pm
import maya.mel as mel
import re
'''
Radio button for point lock activation
'''
def button_base( *args ) :
import pymel.core as pm
import maya.mel as mel
import re
'''
Radio button for point lock activation
'''
def button_base( *args ) :
intFieldData_seq = pm.intField( intFieldEntry_seq, editable = True, query = True, value = True)
select -cl;
proc hair_joint_x() {
$origin_x = getAttr( "locator1.translateX" ) ;
$origin_y = getAttr( "locator1.translateY" ) ;
$origin_z = getAttr( "locator1.translateZ" ) ;
print ("x of origin = " + $origin_x + "\n") ;
print ("y of origin = " + $origin_y + "\n") ;
print ("z of origin = " + $origin_z + "\n") ;