Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Quick animate
- from pymel.core import *
- """
- sj = scriptJob(e= "SelectionChanged", ct)
- for s in sj:
- print s
- """
- def selector():
- sl = selected()
- print "_______"
- print sl
- def startS():
- global sj
- sj = scriptJob(e= ("SelectionChanged",selector))
- print "Start"
- def stopS():
- scriptJob(k=sj)
- print "Stop"
- from pymel.core import *
- win = window(title= "Gui", s=0)
- mainLayout = rowColumnLayout(nc=1)
- startBtn = button(l="Start", command=Callback(startS),w=100)
- stopBtn = button(l="Stop", command=Callback(stopS))
- win.show()
Advertisement
Add Comment
Please, Sign In to add comment