當動畫啟動時,如果 IBM® Rational® Rhapsody® 找到名為 omanimator.cfg 的檔案,則它會執行該檔案。此方法對於大型專案或包含 GUI 的專案來說非常有用,這是因為可以撰寫 Script 並自動執行該 Script(如下列範例):
//================================================
// Switch off the animation before starting
watch
// Run with animation off to create all objects
go idle
// Switch animation back on
display
// Run continuously
go
//================================================