Turning graphic effects off and on
devin_asay at byu.edu
Mon Dec 9 16:04:48 EST 2013
On Dec 9, 2013, at 1:52 PM, J. Landman Gay wrote:
> On 12/9/13 2:22 PM, Devin Asay wrote:
>> Right, I know about setting the effect to empty, but it's the saving of the graphic effect settings that's tripping me up. Shouldn't something like this work:
>> set the colorOverlay_save of btn "foo" to the colorOverlay of btn "foo"
>> --> I thought this would save the array to a new customProp, but it just creates an empty custom prop
>> set the colorOverlay of btn "foo" to the colorOverlay_save of btn "foo"
> On second thought, I've done this successfully actually. Are you sure the property is empty? The inspector won't show it, but you should be able to retrieve it by script and see it in the variable watcher.
Yeah, it's just empty. A custom property that's an array, when you click on it in the property inspector, gives you a warning not to edit it in the inspector lest you wreak havoc on it. Plus when I enter in the message box: the colorOverlay_save of btn "foo" is an array, you get 'false'.
Seems like you would need to create the array separately in a variable, then store the variable in a CP.
Learn to code with LiveCode University
More information about the Use-livecode