Visual Effect in layer

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Visual Effect in layer

Post by teacherguy » Sun Dec 04, 2016 2:55 pm

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.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10125
Joined: Fri Feb 19, 2010 10:17 am

Re: Visual Effect in layer

Post by richmond62 » Sun Dec 04, 2016 5:23 pm

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
Last edited by richmond62 on Sun Dec 04, 2016 7:49 pm, edited 2 times in total.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10125
Joined: Fri Feb 19, 2010 10:17 am

Re: Visual Effect in layer

Post by richmond62 » Sun Dec 04, 2016 5:30 pm

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 226 times
SS2code.png
Last edited by richmond62 on Sun Dec 04, 2016 7:50 pm, edited 1 time in total.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Visual Effect in layer

Post by jacque » Sun Dec 04, 2016 5:38 pm

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?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10125
Joined: Fri Feb 19, 2010 10:17 am

Re: Visual Effect in layer

Post by richmond62 » Sun Dec 04, 2016 7:17 pm

and the "move" command is useful in some cases.
as I demonstrated in one of my 2 earlier postings.
The other one used blendLevel.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Visual Effect in layer

Post by jacque » Sun Dec 04, 2016 7:34 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10125
Joined: Fri Feb 19, 2010 10:17 am

Re: Visual Effect in layer

Post by richmond62 » Sun Dec 04, 2016 7:46 pm

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.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10125
Joined: Fri Feb 19, 2010 10:17 am

Re: Visual Effect in layer

Post by richmond62 » Sun Dec 04, 2016 8:14 pm

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

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Visual Effect in layer

Post by teacherguy » Sun Dec 04, 2016 8:25 pm

Thanks all

Post Reply