Page 1 of 1

Brush Tool on Video

Posted: Wed Feb 05, 2014 5:36 pm
by KingCode
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 :)

Re: Brush Tool on Video

Posted: Wed Feb 05, 2014 5:46 pm
by Klaus
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

Re: Brush Tool on Video

Posted: Wed Feb 05, 2014 6:39 pm
by KingCode
And there is no way round this at all?

Re: Brush Tool on Video

Posted: Wed Feb 05, 2014 6:53 pm
by FourthWorld
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.

Re: Brush Tool on Video

Posted: Wed Feb 05, 2014 7:52 pm
by KingCode
Thank you! :) just what I needed

Re: Brush Tool on Video

Posted: Wed Feb 05, 2014 10:36 pm
by Klaus
Ah, sorry, looks like I misunderstood your question.