Edit the code on the "Flask Icon" tool

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
ryberg
Posts: 93
Joined: 10 Mar 2009, 20:43
Location: CPH
Contact:

Edit the code on the "Flask Icon" tool

Post 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
User avatar
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

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

Post 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.
User avatar
ryberg
Posts: 93
Joined: 10 Mar 2009, 20:43
Location: CPH
Contact:

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

Post by ryberg »

Thank you ZigOtto.
That was the right code.

I still can't see the connection between these numbers and the colors though. :?
User avatar
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

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

Post 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 ... :)
User avatar
ryberg
Posts: 93
Joined: 10 Mar 2009, 20:43
Location: CPH
Contact:

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

Post by ryberg »

Thanks. Now it makes more sense to me. :)
Post Reply