Page 1 of 1

Ruby output trigger?

Posted: Thu Oct 09, 2014 9:02 pm
by Subquantum
Can someone tell me the correct way send a trigger to an output in ruby?

For instance, if I want to send a boolean to a ruby output, I can use:
output 0,true
But if I want to send a trigger to a ruby output I can not use:
output 0,trigger

Re: Ruby output trigger?

Posted: Thu Oct 09, 2014 9:49 pm
by TheOm
It doesn't matter, you can send anything to the output.
I just do this:
output 0, nil

Re: Ruby output trigger?

Posted: Thu Oct 09, 2014 10:08 pm
by tulamide
Any data sent by definition also sends a trigger (with one exception: If you directly change the output array's data). So, as TheOm said, simply send anything (including nil). Just make sure the output type is a trigger then, the information will get lost but the trigger will be used.

Re: Ruby output trigger?

Posted: Thu Oct 09, 2014 10:52 pm
by Subquantum
Thanks guys!

I thought it was going to be something simple like that.