reset filter

Write here what nice effects or shows you have done with MADRIX or ask other users.

Moderator: MADRIX Team

Locked
cg
Posts: 34
Joined: Sun Oct 14, 2012 7:22 pm
Location: Leipzig

reset filter

Post by cg »

I'd like to have a storage place macro reset the main output color filter.

I tried SetFilter(FILTER_NONE); or Filter(FILTER_NONE); in PostRenderEffect but it seems to not do anything.

Is that possible at all?
User avatar
Wissmann
Developer
Developer
Posts: 774
Joined: Fri Feb 23, 2007 3:36 pm
Location: Germany
Contact:

Re: reset filter

Post by Wissmann »

Yes, from a storage place macro you have no access to the mainout filter. There is general no access to the controls from the mainout section except from the mainout macro themself.
LEDs are nothing without control ;-)
cg
Posts: 34
Joined: Sun Oct 14, 2012 7:22 pm
Location: Leipzig

Re: reset filter

Post by cg »

alright...

What if I create a main otput macro that checks if the active storage place is my "reset button" (assumingly A1) and only then resets the filter? Would that be possible and would that cause performance issues?
User avatar
Wissmann
Developer
Developer
Posts: 774
Joined: Fri Feb 23, 2007 3:36 pm
Location: Germany
Contact:

Re: reset filter

Post by Wissmann »

Yes with GetStoragePlace you can ask which place is the current on the storage and no there is no performance issue if you set the filter only if the storage place changes.
LEDs are nothing without control ;-)
cg
Posts: 34
Joined: Sun Oct 14, 2012 7:22 pm
Location: Leipzig

Re: reset filter

Post by cg »

Seems like it is better to also check if the filter is already "white", otherwise the filter button is flickering from being set to white continously.
User avatar
Wissmann
Developer
Developer
Posts: 774
Joined: Fri Feb 23, 2007 3:36 pm
Location: Germany
Contact:

Re: reset filter

Post by Wissmann »

exactly, i see you got it ;-)
LEDs are nothing without control ;-)
Locked