Enable one object at a time

funboixero's picture

I have a project where I am doing a composition that will be at a kiosk until someone comes up with an AR code to see if they win.

I want to put a cube that spins but turns off when an AR code is found.

Any help is is much appreciated. Thanks!

jstrecker's picture
Re: Enable one object at a time

If you want to switch between different modes of a composition (like cube on / cube off), you can encapsulate each mode in a macro and use a demultiplexer (with reset enabled and set to 0) to enable one mode at a time.

Do you want the cube to disappear or just stop spinning when the AR code is found? If the latter, you can still use the demultiplexer, together with a smooth patch. See attached composition.

PreviewAttachmentSize
spinning cube on off.qtz7.83 KB

funboixero's picture
Re: Enable one object at a time

I thought I would give more explanation for anyone that is trying to lend a hand.

A happens until B is triggered and turns A off but when B is finished it turns A back on.

funboixero's picture
Re: Enable one object at a time

Thanks jstrecker This should help me out a lot!