Skip to main content
Known Participant
Jun 28, 2019 6:00 PM UTC
Answered

Script to detect gray boxes for missing graphics

Hello Community,

I cannot find an Inset property that will let me know if a graphic is not being displayed because FM could not find the source. I have the oGraphic.InsetFile property but don't see how to determine if the image is being displayed or not.

My task is to create a list of all missing graphics in the document so the user can manually then try to go and reconnect the missing graphic(s) to the AFrame.

Thanks in advance!

This topic is closed to new replies. Start a new post to keep the conversation going.
frameexpert
frameexpertCorrect answer
Community Expert
Jun 28, 2019 6:23 PM UTC

You can do something like this:

var file;

file = new File (oGraphic.InsetFile);

if (file.exists === false) {

    // Missing graphic.

}

www.frameexpert.com

2 replies

frameexpert
Community Expert
frameexpertCommunity ExpertCorrect answer
Community Expert
Jun 28, 2019 6:23 PM UTC

You can do something like this:

var file;

file = new File (oGraphic.InsetFile);

if (file.exists === false) {

    // Missing graphic.

}

Translate
www.frameexpert.com
fonrigAuthor
Known Participant
Jun 28, 2019 6:52 PM UTC

Thanks Rick. Didn't think about using the File object. You are the best!

Translate