Page 1 of 1

Visual Effect in layer

Posted: Sun Dec 04, 2016 2:55 pm
by teacherguy
I know that we can limit visual effects to take place within a distinct rect, but is there any way to have a visual effect only take place within a layer and not have an impact on the material beneath that layer?

Say you have a text field, not opaque, with an image layered below it and we restrict the rect of the effect to the rect of the field. Using "dissolve" you can give the appearance at least that the image beneath is not changing (even though it really is). But the other effects will have a clear visual impact upon the image data beneath the field. It would be great to be able to (say) scroll a new word into that rect without the image changing underneath.

Everything I have read tells me we can't do this, but thought I would ask.

Re: Visual Effect in layer

Posted: Sun Dec 04, 2016 5:23 pm
by richmond62
I love messing around:
Silly Stuff.png
Silly Stuff.livecode.zip
Here' the stuff.
(57.32 KiB) Downloaded 220 times
When you can't do it, fake it.
SScode.png

Re: Visual Effect in layer

Posted: Sun Dec 04, 2016 5:30 pm
by richmond62
Sorry: in my wild enthusiasm I didn't read your message that carefully;
here's a "dissolve".
Silly Stuff 2.livecode.zip
Here's the stack.
(57.41 KiB) Downloaded 225 times
SS2code.png

Re: Visual Effect in layer

Posted: Sun Dec 04, 2016 5:38 pm
by jacque
There's no way to limit visual effects to layers, but you can do a lot with scripted animation. "Ticker tape" scrolls can be done by script, and the "move" command is useful in some cases. What type of effect would you like to see?

Re: Visual Effect in layer

Posted: Sun Dec 04, 2016 7:17 pm
by richmond62
and the "move" command is useful in some cases.
as I demonstrated in one of my 2 earlier postings.
The other one used blendLevel.

Re: Visual Effect in layer

Posted: Sun Dec 04, 2016 7:34 pm
by jacque
I almost never download stacks from the forum, so I didn't see yours. It's too time consuming and I'm not always at my computer anyway.

If the relevant info isn't posted as either a description or a script snippet I won't see it.

Re: Visual Effect in layer

Posted: Sun Dec 04, 2016 7:46 pm
by richmond62
If the relevant info isn't posted as either a description or a script snippet I won't see it.
That's a valid point.

I have made good that omission above.

Re: Visual Effect in layer

Posted: Sun Dec 04, 2016 8:14 pm
by richmond62
And here's a sort of concertina thing that's quite effective:
SS3code.png
Silly Stuff 3.livecode.zip
Here's the stack.
(57.43 KiB) Downloaded 250 times

Re: Visual Effect in layer

Posted: Sun Dec 04, 2016 8:25 pm
by teacherguy
Thanks all