Skip to main content
Inspiring
Oct 31, 2024 9:12 PM UTC
Question

Audio levels expression for check box control

i want to make a mogrts template for logo animation, i hope it can be toggled with audio on and off with the "checkbox control". anyone please tell me what the correct expression it should be?  

the first line shoud be correct, but the second line   if (y==1)100; else 0;   how to make right?

 

 

thank you in advance, really appricate!

This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

Legend
Oct 31, 2024 9:24 PM UTC

you need to return an array with 2 values:

 

y == 1 ? [0,0] : [-100,-100]; 

 

 

 

Translate
Inspiring
Oct 31, 2024 9:48 PM UTC

hello, could you please explain that "2 dimensional array" to me ? i am so bad to understand this... thank you so much.

Translate
Legend
Oct 31, 2024 10:26 PM UTC

In fact, no, it's an array with 2 values, 

1 value for the left channel and

1 value for the right channel

Translate