Go to: Synopsis. Return value. MEL examples.
reloadImage
string string
reloadImage is undoable, NOT queryable, and NOT editable.
This command reloads an xpm image from disk. This can be used when the file has changed on disk and needs to be reloaded. The first string argument is the file name of the .xpm file. The second string argument is the name of a control using the specified pixmap.boolean | True if image is successfully loaded, false otherwise. |
reloadImage "image.xpm" iconTextButtonName; reloadImage "image" shelfButtonName; reloadImage "~/bitmaps/maya/image.xpm" toolButtonName;