Possible to set camera parameters and zoom with George?

A forum dedicated to George scripting questions
Post Reply
User avatar
Lukas
Posts: 526
Joined: 14 Jan 2011, 11:15
Contact:

Possible to set camera parameters and zoom with George?

Post by Lukas »

Is it possible to set camera parameters and zoom with George?

I can only find this on the wiki:

Code: Select all

tv_CameraInfo return w h filedmode framerate aspectratio blur
but I can only get the current settings with it, not SET new parameters. Is that correct or am I missing something?
  • Lukas Sketch Panel
  • TVPaint Pro 11.7.3
  • MacBook Pro 2018 macOS Ventura 13.4.1 + PC Windows 10
  • Wacom Cintiq 27QHD + Wacom Intuos4
  • YouTube.com/@ClubBaboo
  • YouTube.com/@FrameOrder
User avatar
Lukas
Posts: 526
Joined: 14 Jan 2011, 11:15
Contact:

Re: Possible to set camera parameters and zoom with George?

Post by Lukas »

I guess this is a feature request...:

I'd like to be able to set the camera parameters with George.

Right now we can only GET the info, but not SET.
  • Lukas Sketch Panel
  • TVPaint Pro 11.7.3
  • MacBook Pro 2018 macOS Ventura 13.4.1 + PC Windows 10
  • Wacom Cintiq 27QHD + Wacom Intuos4
  • YouTube.com/@ClubBaboo
  • YouTube.com/@FrameOrder
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18

Re: Possible to set camera parameters and zoom with George?

Post by Mads Juul »

+1 YES
I'm really could use this.
User avatar
skomdra
Posts: 146
Joined: 14 Aug 2010, 14:32

Re: Possible to set camera parameters and zoom with George?

Post by skomdra »

+ Yes, definitely! I am only concerned is this possible with the current architecture thou, I asked once can I add my own camera presets, this would be the first step
-----
TV Paint 11.5.3 Windows 10
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18

Re: Possible to set camera parameters and zoom with George?

Post by Mads Juul »

Since 10.5.1 it is poossible to set the Camera Parameters with George
http://wiki.tvpaint.fr/index.php?title=Tv_CameraInfo
User avatar
skomdra
Posts: 146
Joined: 14 Aug 2010, 14:32

Re: Possible to set camera parameters and zoom with George?

Post by skomdra »

wow, cool. Thanks for mentioning man!
-----
TV Paint 11.5.3 Windows 10
User avatar
Lukas
Posts: 526
Joined: 14 Jan 2011, 11:15
Contact:

Re: Possible to set camera parameters and zoom with George?

Post by Lukas »

Thanks!
  • Lukas Sketch Panel
  • TVPaint Pro 11.7.3
  • MacBook Pro 2018 macOS Ventura 13.4.1 + PC Windows 10
  • Wacom Cintiq 27QHD + Wacom Intuos4
  • YouTube.com/@ClubBaboo
  • YouTube.com/@FrameOrder
User avatar
D.T. Nethery
Posts: 4225
Joined: 27 Sep 2006, 19:19

Re: Possible to set camera parameters and zoom with George?

Post by D.T. Nethery »

madsjuul wrote:Since 10.5.1 it is poossible to set the Camera Parameters with George
http://wiki.tvpaint.fr/index.php?title=Tv_CameraInfo
I am not conversant with George , but this ability to set camera parameters is very interesting to me.

Would setting the camera parameters with George allow one to do multiple camera moves with holds between the moves ?

For example:

1.) at the start of the shot the camera position is zoomed-in close to a photograph on the wall , then the camera zooms-out to reveal a wider shot of the room , easing-in to the last positon as the camera completes the zoom-out -- and HOLDS at the end end of the zoom-out ---

2.) then the camera pans over to the right to reveal a doorway, easing-out of the hold and easing-in to the final position as it pans over to the right --- and camera HOLDS as a character enters through the doorway , looks left and walks over to the left ---

3.) then the camera follows the character, panning over to the left and also zooming-in slightly closer on the character at the end of the move , easing-in to the last position --- and the camera HOLDS as the character reaches up to take the photograph off the wall ---

4.) then the character moves to the right as the camera follows , easing-out of the previous hold position and panning over to the right to show the character exiting the room through the doorway , easing-in to the final position --- and the camera HOLDS at end of the scene before the cut .

Can the multiple camera positions with ease-outs/ease-ins and HOLDS be set with George ?

If this is possible would one of you expert George users be able to do a short tutorial showing how to set the parameters for the camera positions , including setting the length of the holds between the camera moves ?


.
User avatar
skomdra
Posts: 146
Joined: 14 Aug 2010, 14:32

Re: Possible to set camera parameters and zoom with George?

Post by skomdra »

I am not sure if it is possible to set the position and zoom since in quoted article the only parameters mentioned were Width Height field Framerate and Pixelaspectratio, it would be useful to add the position and zoom, thou.
-----
TV Paint 11.5.3 Windows 10
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18

Re: Possible to set camera parameters and zoom with George?

Post by Mads Juul »

D.T. Nethery wrote: Can the multiple camera positions with ease-outs/ease-ins and HOLDS be set with George ?
I don't think this is possible. But please prove me wrong.

Because We don't have read write access to the camera : Time/Position profile. as requested here
viewtopic.php?f=21&t=6937&p=62409&hilit=camera#p62409
That means we cannot control what will happen at what time.
You can set the Zoom and position and number of points of the camera with the 4 George commands here
http://wiki.tvpaint.fr/index.php?title= ... EnumPoints
http://wiki.tvpaint.fr/index.php?title= ... nsertPoint
http://wiki.tvpaint.fr/index.php?title= ... emovePoint
http://wiki.tvpaint.fr/index.php?title= ... raSetPoint

But lets say I have a simple move fra position x1 y1 to x2 y2. I have a clip duration of 100 frames and I want to start the camera move on frame 10 and end on frame 90
I set the start and end position like this

Code: Select all

PARAM none

// parameters position 1 (Start)
x1 = 100
y1 =300
angle1 = 0
size1 = 1

//parameters  position 2 (End)
x2 = 500
y2 = 300
angle2 = 0
size2 = 1

// first I remove the exiting camera move if any

loop=1
WHILE loop
	tv_CameraEnumPoints 0
	point = result

	IF CMP(point,"none")==1
		loop=0
	ELSE
		tv_CameraRemovePoint 0	
	END
END
//set position 1
tv_CameraInsertPoint 0 x1 y1 angle1 size1
//set position 2
tv_CameraInsertPoint 1 x2 y2 angle2 size2
So far so good I have a camera move wihich starts in x1 y1 and ends in x2 y2. But now I want it to start at frame 10 and end at frame 90.
To do this we would manually modify the Tool : Camera Profile:Camera Time/Position. But I cannot access this with George. So how to set it?
My only theoretically approach so far was . If you have 100 frames in a clip . then set 100 points with tv_CameraInsertPoint . If the time/position profile is default. then You COULD set a precise camera move with George. But who want's to do this?
I have never done it only thought about it.

And actually. If we got access to read/write of the Camera Time/Position Profile. I'm not sure it would give a satisfying result to a more complex camera movement as You described David with more than 1 start position and 1 end position. So maybe itis better to hope a better Camera Control some day will be implemented in TVPaint. But still I would like read/Write access to the Camera Time/Position Profile. So I at least could control the start and end of a simple move

I can actually save and load a profile manually pretty easy here
save load profiles.JPG
save load profiles.JPG (27.56 KiB) Viewed 1657 times
And this is the content of the file if a set the camera movement to start at 10 and end at 90

Code: Select all

[Curve]
point3=1 1
numpoint=4
name=Camera Time/Position
current=2
linear=1

point0=0 0
point1=0.1025 0
point2=0.9025 1

it looks fairly easy to manipulate. It is actually all that I would like to have George access to to save and load the profiles of the Camera Time/Postion
This wouls for example be the code if Iwanted to reset my profile

Code: Select all

[Curve]
name=Camera Time/Position
numpoint=2
current=0
linear=1
point0=0 0
point1=1 1


So if You are interested in better control over Camera Movements with George . You should +1 this Request
viewtopic.php?f=21&t=6937&p=62409&hilit=camera#p62409


-Mads
Post Reply