It would be great to have a list of available curveshapes for controls in the documentation sir Louis
set_control_shape( shape_name )
Sets the control to have a shape from the curve library.
Moderator: louisVottero
Code: Select all
lightbulb
circlePointer
pyramid
pin
square_locator
circle_pin
pin_four_corner
circle_pinch
circleDoubleNub
sphere
square
star
octogon
arrow3d
coffee_eyes
circleCross
halfMoonHandle
spinner
circleGrabber
cube_locator
yaw
spiky
cross
sphere2
seeSaw
inOut
squareLiner
circle
circleLiner
rectangle
outwardCirclePointer
halfCircleLiner
diamond
triangle
gear
circleDoublePointer
fx
M
circle_point
coffee_mouth
wigglyPointer
twoAxisRotate
line
spin
pin_round
rotate
circleZ
cube
circleX
lightning
gearPoint
outwardPointer
rotateTwoDirections
push
squarePointer
circleNub
pin_point
circleY
square_point
glasses
Code: Select all
#you may have to add Vetala to the system path
#import sys
#sys.path.append('c:/Vetala')
from vtool.maya_lib import curve
info = curve.CurveDataInfo()
info.set_active_library('default_curves')
#to print out the names
info.get_curve_names()
#to create all the curves in the scene.
info.create_curves()