How can I get a media name in a script? The aim is to get the descriptions of images from dynamic media. Meaning not just from one image but from different images. I have the code below, is there are snippets that I can use to achieve this?
// description: STRING
var mediaName = (a snippet required)
let description = MediaEntities["RampConveyor"].GetDescription();
let result = description;
your suggestions will really help thank you.
Solved! Go to Solution.
You can get a media description with above code.
Where are you from trying to get a dynamic media name?
This does :
MediaEntities[mediaName].GetDescription(); is correct.
It gives me the description of the specific media. In the event where I would want to reuse this service to get the description for another media, I do not want to keep going back to change the media name. So my question is how can I get a media name for different media (images to be precise)?