Page 1 of 1

Conditionally Running a Module?

Posted: Sun Jan 17, 2021 4:26 am
by VidEZ
Hi,
Is there a way to conditionally run a module, or make a module appear?

I realize you can put modules in scenes, and then go from scene to scene via a playlist....but it doesn't favor my use case.

I had a work around; I 'moved' or used the translate module to place the output from another module off the screen[x value], and then using an expression upon a certain condition, change the x value to display the desired visual back on the screen. It makes the output from a module seemingly conditionally appear or disappear.... ........ on a side note, I tired the Color HSB module and conditionally set the Alpha - thinking this would be the visuals transparent, but that didn't really work.

Is there an easier way?

Is there a way to programmatically engage the module bypass?

Thanks!

Re: Conditionally Running a Module?

Posted: Sun Jan 17, 2021 7:34 am
by Sadler
There are several ways to 'turn off' a branch of the graph or bypass a single node.

Read the section Bypass/Power Parameters and look at the sample project
https://magicmusicvisuals.com/downloads ... ingModules

You can also use the Transparency module and the Input Selector to fade or switch between nodes.

You can conditionally control these using all the input sources available to Magic.

Re: Conditionally Running a Module?

Posted: Sun Jan 17, 2021 3:57 pm
by Magic
Yup and the specific User's Guide section is https://magicmusicvisuals.com/downloads ... passParams

Re: Conditionally Running a Module?

Posted: Sun Jan 17, 2021 10:24 pm
by VidEZ
Thank you so much!!
Awesome references, and I got my scene to run conditionally.