Message 1 of 3
Not applicable
11-23-2016
02:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, everyone!
I'm programming a plug-in that creates a new window. I'm calling the Maya API method "scriptJob" to delete my window and close the plug-in properly.
Here's my code, I don't know which is the problem:
import pymel.core as pm
win=pm.window(label="WindowExample")
pm.showWindow(win)
def closePlugin():
pm.deleteUI(win, window=True)
pm.scriptJob(uiDeleted=[win, closePlugin], parent=(win))Thanks in advance! 😄
Solved! Go to Solution.