Go to: Synopsis. Return value. MEL examples.

Synopsis

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.

Return value

booleanTrue if image is successfully loaded, false otherwise.

MEL examples

reloadImage "image.xpm" iconTextButtonName;
reloadImage "image" shelfButtonName;
reloadImage "~/bitmaps/maya/image.xpm" toolButtonName;