Page 1 of 1

Active Binding for Boolean values

Posted: 31 Mar 2019, 17:11
by sideshowbond
Evening,

I got macros to toggle 'Capy Tracked Values' user setting. I got the active binding for True set via

Code: Select all

<active binding="Playbacks.CopyTrackedValues" />
however I fail to figure out how to set active binding for false. Probably just a tiny thing I am missing but I don't get it right now...

Re: Active Binding for Boolean values

Posted: 01 Apr 2019, 16:30
by Gregory
Not as tiny as perhaps it could be, you need a property converter to change the value of the property:

Code: Select all

<active binding="{propertyLink id='Programmer.Editor.Fixtures.EditorInUse' converter='Math.NotConverter'}" />

The NotConverter will return true when the property is false and vice versa, other converters have been used things such as palette fade (TimeEqualityConverter) and overlap (EqualityConverter).