Description
Replaces a media from the Media List
panel by a new specified file and refreshes the cache of the Designer.
The media name in the Media List
panel will be updated to the new media’s name.
It is possible to keep the same name by specifying a path to a file that has the same name as the media to replace. The media will be refreshed with the new file but will keep it’s name.
This command will also immediately push the media to all VNodes where the media is being used, similar to an online command.
Syntax
designer.updateMediaPath("MEDIA NAME", "FILENAME");
Parameters
Parameter | Type | Description |
---|---|---|
MEDIA NAME |
String | Name of the media to replace in the Media List |
FILENAME |
String | Path to the file to load in specified media |
Return
This function does not return anything.
Need more help with this?
Don’t hesitate to contact us here.