Description

Replaces a media from the Media List panel by a new specified file and refreshes the cache of the Designer.

This function targets the media by specifying a tag instead of a name. Tag is set in the Media List panel by selecting the media and setting its tag in the Editor panel.

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.updateMediaPathByTag("TAG", "FILENAME");

Parameters

Parameter Type Description
TAG String Tag 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.

Thanks for your feedback.