New George Commands syntax for TVPaint 8.5?

A forum dedicated to George scripting questions
Post Reply
Svengali
Posts: 1552
Joined: 28 Dec 2006, 10:08

New George Commands syntax for TVPaint 8.5?

Post by Svengali »

Where can I find the syntax and usage for the New George commands?

tv_paper (etc.)
tv_exposure (etc.)
tv_pixelmatrix

Sven
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: New George Commands syntax for TVPaint 8.5?

Post by Hervé »

Code: Select all

	* tv_pixelmatrix  r1 g1 b1 a1 k1   r2 g2 b2 a2 k2    r3 g3 b3 a3 k3    r4 g4 b4 a4 k4 [unmultiply mode]
	For each pixel RGBA
		if(unmultiply mode)r = R/A*255, g = G/A*255, b = B/A*255, a = A
		R = r*r1 + g*g1 + b*b1 + a*a1 + k1
		G = r*r2 + g*g2 + b*b2 + a*a2 + k2
		B = r*r3 + g*g3 + b*b3 + a*a3 + k3
		A = r*r4 + g*g4 + b*b4 + a*a4 + k4
		if(unmultiply mode)R = R*A/255, G = G*A/255, B = B*A/255, A = A

Code: Select all

	* tv_exposureadd iPosition
		add an exposition
	* tv_exposurebreak iPosition
		break an exposure
	* tv_exposureinfo iPosition
		result: "None" | "Exposure" | "Head"

Code: Select all

	* tv_paperInfo
		result: full info of the current paper
	* tv_paper ["Active" 0/1] ["Hardness" 0/100] ["Invert" 0/1] ["Size" 0/100] ["Angle" 0/360] ["OffsetX" 123]  ["OffsetY" 123] ["FlipX" 0/1]  ["FlipY" 0/1] ["Name" "paper name"]
	* tv_paperenum iNum
		result: paper name | ""

Code: Select all

	* tv_bookmarksenum iNum
		result: position | "none"
	* tv_bookmarkset iPosition
	* tv_bookmarkclear iPosition
	* tv_bookmarktoggle iPosition
	* tv_bookmarknext
	* tv_bookmarkprev

Code: Select all

	* tv_getlanguage
		result: Full English name of the language from the International Organization for Standardization (ISO) Standard 639
Hervé ADAM, TVPaint Team
Svengali
Posts: 1552
Joined: 28 Dec 2006, 10:08

Re: New George Commands syntax for TVPaint 8.5?

Post by Svengali »

Thanks H!
dhoom3
Posts: 1
Joined: 01 Nov 2014, 09:58

Re: New George Commands syntax for TVPaint 8.5?

Post by dhoom3 »

Thanks a lot !!!!!!!!!!!
dhoom
Post Reply