luluh79
Posts: 4
Joined: Tue Jul 28, 2020 4:34 pm

PiPresents and Scripts

Sun Aug 09, 2020 3:53 pm

Starting out with PiPresents for running animatronics with a trigger. Is it possible to add a python script to a PiPresents profile? Is this even necessary? The goal is to play an ambient sound, then trigger a show sound and movement of the animatronics at the same time (ambient continues to play). Then, the program reverts back to the ambient sound until the next trigger.

Thanks for any help with this!

KenT2
Posts: 39
Joined: Thu Aug 16, 2012 8:34 pm
Contact: Website

Re: PiPresents and Scripts

Sun Aug 09, 2020 5:40 pm

You do not need python scripts for this. You need 2 mediashows that start when PP starts

Mediashow 1 is a repeating show playing the ambient sound continually

Mediashow 2 is a repeating mediashow with a 'Trigger at Start' that is triggered by your input event. It plays the show sound and uses animate commands to do the movement.

animate commands can send GPIO or other outputs (e.g. serial) with the appropriate I/O plugins.

luluh79
Posts: 4
Joined: Tue Jul 28, 2020 4:34 pm

Re: PiPresents and Scripts

Sun Aug 09, 2020 10:06 pm

Thanks for your reply, much appreciated. How does one go about using the I/O plugins? Sorry for the questions, but new to this and the manual with PP is not super helpful for beginners!

luluh79
Posts: 4
Joined: Tue Jul 28, 2020 4:34 pm

Re: PiPresents and Scripts

Tue Aug 11, 2020 7:30 pm

I am also wondering how you assign the animate commands. I found the box where you add them, but how does one go about creating those? Also, we were attempting to use the PIR trigger from one of the examples, but could not seem to make it work after copying the config file to my program. What does the P1 signify? Are your pins counted using board, BCM or GPIO? I apologize if any of this is in the manual, I have been combing through it and reading, but have not found these answers.

Thank you for any help you can provide with this!

Return to “Beginners”