Page 1 of 1

Edit the code on the "Flask Icon" tool

Posted: 03 May 2011, 18:04
by ryberg
I recently upgraded to TVP Anim 9 pro and noticed the code, in the Flask Icon tool in the Sketch Panel that turns everything into a specific color, has changed from TVP 8.
I want to create a duplicate of the Flask tool and change it's function from turning color black to white.
Back when I used version 8, it was easy to find RGB values in the code, now it's just a bunch of zeros.
Can anyone please let me in on how to read this:

tv_cmd Heads tv_pixelmatrix 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0

Re: Edit the code on the "Flask Icon" tool

Posted: 03 May 2011, 19:32
by ZigOtto
you can try this :

Code: Select all

tv_pixelmatrix 0 0 0 1 0   0 0 0 1 0   0 0 0 1 0   0 0 0 1 0
I think it should turn the frame's content into white, if it's what you're looking for.

Re: Edit the code on the "Flask Icon" tool

Posted: 03 May 2011, 20:24
by ryberg
Thank you ZigOtto.
That was the right code.

I still can't see the connection between these numbers and the colors though. :?

Re: Edit the code on the "Flask Icon" tool

Posted: 03 May 2011, 23:01
by ZigOtto
well, I'm not a scripting expert so far, but you can go and see the dedicated wiki pages,
the george script commands are succintly documented there, ...
http://wiki.tvpaint.fr/index.php?title=Tv_PixelMatrix
if it can help ... :)

Re: Edit the code on the "Flask Icon" tool

Posted: 04 May 2011, 08:27
by ryberg
Thanks. Now it makes more sense to me. :)