Brush Tool on Video

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
KingCode
Posts: 9
Joined: Wed Feb 05, 2014 5:34 pm

Brush Tool on Video

Post by KingCode » Wed Feb 05, 2014 5:36 pm

Hey All,

Looking forward to developing with Livecode.

How can I use the brush tool to draw over the video area.

I have a button which brings up the brush, but only seems to draw over other areas and not my video?

Any ideas?

Thanks :)

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

Re: Brush Tool on Video

Post by Klaus » Wed Feb 05, 2014 5:46 pm

Hi KingCode,

1. welcome to the forum! :D

2. You can only "paint" on IMAGE objects, not on a video!

FYI: Here some great learning resources:
http://www.hyperactivesw.com/revscriptc ... ences.html


Best

Klaus

KingCode
Posts: 9
Joined: Wed Feb 05, 2014 5:34 pm

Re: Brush Tool on Video

Post by KingCode » Wed Feb 05, 2014 6:39 pm

And there is no way round this at all?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Brush Tool on Video

Post by FourthWorld » Wed Feb 05, 2014 6:53 pm

You can set the player object's alwaysBuffer property to true, which will allow you to overlay other objects on top of is, such as a paint object.

However, due to the way this buffering affects interactions, the player's controller will no longer work.

This is easy enough to work around by making your own controls to start and stop the player, or set its currentTime, etc. It's a bit more work, but if you need an overlay it's the only way I know of.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

KingCode
Posts: 9
Joined: Wed Feb 05, 2014 5:34 pm

Re: Brush Tool on Video

Post by KingCode » Wed Feb 05, 2014 7:52 pm

Thank you! :) just what I needed

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

Re: Brush Tool on Video

Post by Klaus » Wed Feb 05, 2014 10:36 pm

Ah, sorry, looks like I misunderstood your question.

Post Reply