madman411 Posted June 9, 2018 Posted June 9, 2018 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.
OlgerDiekstra Posted June 10, 2018 Posted June 10, 2018 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.
madman411 Posted June 26, 2018 Author Posted June 26, 2018 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!
Recommended Posts
This topic is 2342 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now