A scrolling list field of visual effects

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

A scrolling list field of visual effects

Post by richmond62 » Thu Jan 09, 2025 11:37 am

I am looking for a drop-down menu, scrolling list field, or somesuch that will list all the visual effects available in LiveCode in the same sort of way I can populate a drop-down font menu using

Code: Select all

put the fontnames

Klaus
Posts: 14189
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: A scrolling list field of visual effects

Post by Klaus » Thu Jan 09, 2025 12:17 pm

I'm afraid there is no such thing in LC, you need to create your own.

But since the number of supported visual effects will not change dynamically like "the fontnames",
you will only need to create it once.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10315
Joined: Wed May 06, 2009 2:28 pm

Re: A scrolling list field of visual effects

Post by dunbarx » Thu Jan 09, 2025 3:06 pm

Richmond.

The dictionary show the 15-odd different types:
plain
checkerboard
venetian blinds
iris close|open
zoom close|in|open|out
wipe up|down|right|left
dissolve
push up|down|right|left
reveal up|down|right|left
shrink to bottom|to center|to top
stretch from bottom|from center|from top
scroll up|left|down|right
curl up|down: (iOS only)
flip left|right: (iOS only); the background behind the flip is taken from the background color of the current stack, i.e. the card is cut out and flipped over the stack
an encoded QuickTime special effect description generated by answer effect (see Changes below)
the name of a Core Image Transition Effect (MacOS/iOS only; see note below)
You can amend with speeds and "finalImages"

Craig

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

Re: A scrolling list field of visual effects

Post by richmond62 » Fri Jan 10, 2025 8:07 am

Thank you both.

I shall see if I can put something vaguely useful together this weekend.

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

Re: A scrolling list field of visual effects

Post by richmond62 » Fri Jan 10, 2025 8:14 am

an encoded QuickTime special effect description generated by answer effect (see Changes below)
the name of a Core Image Transition Effect (MacOS/iOS only; see note below)
To be honest I would be inclined to exclude those (especially the ones dependent on QuickTime).

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

Re: A scrolling list field of visual effects

Post by richmond62 » Fri Jan 10, 2025 2:05 pm

SShot 2025-01-10 at 15.03.06.png
-
Sets the script of the top button.
Attachments
VizEffects.livecode.zip
Stack.
(1.55 KiB) Downloaded 732 times

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

Re: A scrolling list field of visual effects

Post by richmond62 » Sat Jan 11, 2025 1:06 pm

I wonder why 'Barn Door' is not mentioned in the Dictionary?

Post Reply