這是我希望應該很簡單的一個:
當用戶關閉視窗時,如何讓我的 UI 視窗執行命令?我創建了一個在視窗打開時運行的 scriptJob,我想在視窗關閉時運行一個命令來終止它,并避免在不使用該工具時運行任何 scriptJob。
在 Maya2020 中使用 Python 非常感謝任何指標
uj5u.com熱心網友回復:
您可以parent向 scriptJob 命令添加一個引數以將 scriptJob 附加到 UI 元素,請查看檔案:parent - Attaches this job to a piece of maya UI. When the UI is destroyed, the job will be killed along with it.
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/314215.html
