Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

VID 'effect block not clearing properly

 [1/3] from: kemp::extelligence::net at: 22-Oct-2002 2:43


I'm having an inconsistent error when trying to reassign a VID 'effect block to empty. I'm dynamically adding a series of effects like so (simplified a bit, but crucial points should be here): layout [ pic1: image an-image effect [] ] pic1/effect: append pic1/effect [sharpen] pic1/effect: append pic1/effect [luma +20] pic1/effect: append pic1/effect [sharpen] pic1/effect: append pic1/effect [contrast -5] ; ... all above are actually performed via button functions All works fine so far, every time. But... I have a reset button to clear the effects - it's function is: reset: func [] [ pic1/effect: none ; works better! pic1/effect: [] ; doesn't always work! show pic1 ] This SOMETIMES works, and oddly, works more often with the 'none line in there. When I probe just before the show, the block is not cleared, and contains all the effect words. Has anyone seen this before, or have any advice?? Am I even adding the effects properly to the block?? Thanks, Kemp

 [2/3] from: atruter:hih:au at: 22-Oct-2002 16:48


Have you tried: clear pic1/effect Regards, Ashley

 [3/3] from: al:bri:xtra at: 22-Oct-2002 20:12


Kemp wrote:
> reset: func [] [ > pic1/effect: none ; works better! > pic1/effect: [] ; doesn't always work! > show pic1
Try this line instead: pic1/effect: make block! 10 The reason being that the line pic1/effect: [] doesn't clear the existing block; it simply assigns the block just to the right of the ":", to the word 'effect. set word pic1/effect to the value of the block. Andrew Martin ICQ: 26227169 http://valley.150m.com/