Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Simple pymel Gui Template
- def checkMe():
- boxValue = checkBox1.getValue()
- print "Checked", boxValue
- def buttonPressed():
- textValue = text.getText()
- print "button Pressed"
- def slider1():
- sliderAmount = slider1.getValue()
- print sliderAmount
- from pymel.core import *
- win = window(title= "Gui", s=0)
- mainLayout = rowColumnLayout(nc=1)
- text = textField()
- checkBox1 = checkBox(l = "Check Me", cc = Callback(checkMe))
- button1 = button(l="Button", command=Callback(buttonPressed))
- slider1 = floatSlider(dc=Callback(slider1),min = -1, max = 1)
- win.show()
Advertisement
Add Comment
Please, Sign In to add comment