Slide Removal Issue

10 views
Skip to first unread message

Greg Sealby

unread,
Sep 27, 2019, 1:26:09 PM9/27/19
to MPF Users
I seem to be having an issue removing a slide.  I have the below code, which looks the same as the doco, but it is not removing the slide.

    logicblock_stage_1_complete:
        stage_2_slide
:
            target
: lcd_backbox
    logicblock_stage_2_complete
:
        stage_2_slide
:
            action
: remove
 

Is this config above incorrect?



jabdoa

unread,
Sep 28, 2019, 7:51:43 AM9/28/19
to MPF Users
Is that inside the same mode that added the slide? Otherwise this won't work. A mode more or less namespaces everything inside itself.


Jan

Greg Sealby

unread,
Sep 28, 2019, 9:15:20 AM9/28/19
to MPF Users
I worked it out.  You need to put the target in the remove config section... like this:

    logicblock_stage_1_complete:
        stage_2_slide
:
            target
: lcd_backbox
    logicblock_stage_2_complete
:
        stage_2_slide
:
            target: lcd_backbox
            action: remove
 


Working perfectly after adding this.

I saw a post from Phillip Dixon a few years back that mentioned it ... thanks Phillip!

Greg Sealby

unread,
Sep 28, 2019, 9:16:26 AM9/28/19
to MPF Users


On Saturday, 28 September 2019 21:51:43 UTC+10, jabdoa wrote:
Is that inside the same mode that added the slide? Otherwise this won't work. A mode more or less namespaces everything inside itself.


Jan


Thanks Jan, that is actually good to know for future reference. 

jabdoa

unread,
Sep 28, 2019, 11:46:44 AM9/28/19
to MPF Users
Thanks for the feedback. Probably worth to mention that in the docs.

Jan

Reply all
Reply to author
Forward
0 new messages