changeCommand is executed when the value is changed, and only once
after a drag of the slider.
dragCommand is executed repeatedly during the drag of the slider.
-----------
Code sample:
def slider_drag_callback(*args):
print 'Slider Dragged'
def value_change_callback(*args):
print 'Value Changed'
window = cmds.window()
cmds.columnLayout()
cmds.floatSliderGrp(label='Drag Callback', field=True, value=0,
dc=slider_drag_callback)
cmds.floatSliderGrp(label='Change Callback', field=True, value=0,
cc=value_change_callback)
cmds.showWindow(window)
On Apr 12, 11:31 am, Geordie Martinez <[email protected]>
wrote:
> I have a floatSliderGrp that I need to spit back interactive updates
> to the slider.
> is there a callback or command that can watch the slider handle?
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe