Save 1 frame from camera with George?

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

Save 1 frame from camera with George?

Post by Lukas »

Hi everyone,

Is there a way to save a single frame with George and use the camera view instead of the project view?

Right now I'm using (after merging all layers):

Code: Select all

tv_SaveImage filePath
and

Code: Select all

tv_SaveDisplay filePath
But both are rendering the project view...

I can not get https://wiki.tvpaint.com/index.php?titl ... veSequence to work, but it should be possible that way, maybe? I need to render 1 frame at a time, because I am generating XML files with the timing.
  • 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
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Re: Save 1 frame from camera with George?

Post by Svengali »

Lukas,

I think the syntax you want is something like:

Code: Select all

// save five camera view frames (CameraView00000.png thru CameraView00004.png) into GEORGE folder
FrameStart = 0
FrameEnd = 4   
tv_GetPath GEORGE
GeorgePath = result
PathFile = CONCAT(GeorgePath,"CameraView.png")
PathFile = '"' PathFile '"'   // enclose path-filename with (single quote double quote singlequotes)
tv_ProjectSaveSequence PathFile  CAMERA FrameStart FrameEnd
errornum = result
IF errornum == 0
    tv_warn "camview frames saved"
END
Sven
TVP Pro 11.0.10-64bit Win10 - 64GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.41-1
Android Tablet: rel. 11, Samsung Galaxy Note10.1 - 32GB with microSD 32GB
Android Tablet: rel. 11.5, Samsung Galaxy Tab S7plus - 128GB with microSD 64GB
User avatar
Lukas
Posts: 526
Joined: 14 Jan 2011, 11:15
Contact:

Re: Save 1 frame from camera with George?

Post by Lukas »

Thank you Svengali!

I needed this part:

Code: Select all

filePath = '"' filePath '"'   // enclose path-filename with (single quote double quote singlequotes)
tv_ProjectSaveSequence filePath CAMERA frame frame
  • 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
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Re: Save 1 frame from camera with George?

Post by Svengali »

thought that might be it. :D
TVP Pro 11.0.10-64bit Win10 - 64GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.41-1
Android Tablet: rel. 11, Samsung Galaxy Note10.1 - 32GB with microSD 32GB
Android Tablet: rel. 11.5, Samsung Galaxy Tab S7plus - 128GB with microSD 64GB
Post Reply