Get width and Height of camera with George

A forum dedicated to George scripting questions
Post Reply
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18
Location: Viborg,Denmark
Contact:

Get width and Height of camera with George

Post by Mads Juul »

with

Code: Select all

tv_CameraEnumPoints index -> return x y angle size
I can read the x position and y position and angle and size of the Camera. But is there a way I can get the Width and height of the camera through George?
So I can calculate precisely where the upper left corner is on my Project canvas
-Mads
Mads Juul
Storyboard Artist
blog: http://mjstoryboard.blogspot.dk/
Mail: mjstoryboard@gmail .com

Windows 10, 64 bit i7-4790 CPU 4.00 Hz,32 GB RAM, With TVP Animation 11 Pro (11.0.2-64bits)
2 Monitors 1920X1080 pixels + 1 Wacom Cintiq 21UX 2
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: Get width and Height of camera with George

Post by Hervé »

There is no way.
but you can save a frame with tv_project_savesequence Filename "camera" 0 0 and check the file properties :mrgreen:

I will add a function...
Hervé ADAM, TVPaint Team
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18
Location: Viborg,Denmark
Contact:

Re: Get width and Height of camera with George

Post by Mads Juul »

Hervé wrote: I will add a function...
great! thank you ;-)
Mads Juul
Storyboard Artist
blog: http://mjstoryboard.blogspot.dk/
Mail: mjstoryboard@gmail .com

Windows 10, 64 bit i7-4790 CPU 4.00 Hz,32 GB RAM, With TVP Animation 11 Pro (11.0.2-64bits)
2 Monitors 1920X1080 pixels + 1 Wacom Cintiq 21UX 2
Post Reply