一半君的总结纸

听话只听一半君

#29 如何让 Maya 在某个窗口关闭后立即运行某个命令?

scriptJob’ command 有一个flag可以做到:

window -title "Close Me" myWindow;
showWindow myWindow;

// Use a scriptJob to pop up a farewell message when the window is closed
scriptJob -uiDeleted myWindow "confirmDialog -message \"Buh-bye!\"";

scriptJob 会在和他关联的UI关闭之后自动被删除.

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: