June 9, 20187 yr Hi all I have a looping script that allows the user to scan barcodes in batches. Based on certain criteria it's either successful or returns an error. It works great. I've now incorporated a "beep" upon an error return - works great. I've added a global container field off the layout and inserted an audio clip of a chime which I want to play when the result is successful. IT WILL NOT WORK. The container is a global, data formatting is set to "interactive content" and "start playback automatically". Field entry set to "Browse Mode". Does not play. Script Debugger returns error 102 (field not found) so I moved the container onto the layout and the audio file plays upon entering browse mode and when I enter the layout, but the script does not trigger the clip to play. Even creating a stand alone script with one script function set to "Go to field - Select/Perform" doesn't trigger the clip to play. The global field is located in the table the layout is set to. I can manually trigger the file by clicking the Play icon within the container. I have achieved this before in another file and I have ripped that file apart from the inside out trying to figure out what I have done differently. The ******* audio clip refuses to play! Using FMP Advanced 13 on Mac OSX El Capitan.
June 10, 20187 yr Maybe create a dedicated layout for just that container field and open the layout off screen? Ie, with coordinates -500, -500 or something and a window size of 100x100. You can invoke that layout from a script, pause the script for the duration of the MPEG and close the window again. Or perhaps hiding the field on layout enter and when you want to play the file you unhide it (using a global var) and refresh the field. Then after the duration of the audio hide the field again. Not sure if you can then unhide it and play it again though.
June 26, 20187 yr Author Thanks @OlgerDiekstra. I had to trigger a pause script for .01 seconds to allow the field to play. I'll give your method a shot!
Create an account or sign in to comment