by mad-matt » Tue Aug 12, 2025 10:23 am
In MadMapper 5 you can use the "Idle Cue" module for that. Step by step:
- Create a cue named "Playback", put the movie restart button in the cue (you can set your movie playback to "Play Once" so it stops on last frame. Also add the Firmata module "enabled" checkbox inside the cue with value "false" (deactivated).
- Create a cue named "Idle" that just contains Firmata module "enabled" checkbox to value "true"
- Create an "Idle Cue" module and choose as target the cue named Idle, set the module Timeout to the duration of the movie
- Right click the "Playback" cue and choose Add Control / MadMapper / Firmata / Pin / 2 / Input (if the button is connected to Pin 2, pin 2 has to be set to mode "Input" in firmata module)
Now pressing the button will start the cue "Playback" which starts the movie, it disables firmata module so the button become inactive, the movie plays till the end, then the Idle Cue module will trigger the cue "Idle" which will reactivate the firmata module listening for the button. That's one option.
Note that it would be easier with MadMapper 6 where the button can restart a timeline, the movie could be in a Montage Track so you see exactly where it ends, and you can enable the firmata module with a keyframe at the end of the movie. But since it's a beta version you can still know how to do it in MM 5 hehe