yaotungyu

pop windwo at cursor

Oct 22nd, 2021
758
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from Qt import QtGui
  2. point = QtGui.QCursor().pos()
  3. x_pos=point.x()-303
  4. y_pos=point.y()-128
  5.  
  6. window = cmds.window( title="ShotFinalToolBox", iconName='Short Name', widthHeight=(200, 55),le=x_pos+180,te=y_pos+80)
  7. cmds.showWindow( window )
  8.  
  9.  
RAW Paste Data