Improvements for Export All Images

A forum dedicated to George scripting questions
Post Reply
insom
Posts: 4
Joined: 21 Oct 2019, 12:20

Improvements for Export All Images

Post by insom »

I've been trying to change the George script of the "Export all Images" button in the Handy Custom Panel on TVPaint 11. I always think it's a waste of resources to spend effort trying to save layer information that's effectively out of range and only returns a blank PNG that you later have to delete.

I know it's probably not the best idea since maybe some layers just may have empty images inside, but I'd like to know if I could get some help integrating this feature.

My idea is to use the tv_imagegetbound function to perform a check at the very end before saving. This is that attempt:

Code: Select all

				tv_imagegetbound "xyxy" "Y2" bound
				bound = result
								
				
				IF (bound > 0)
					tv_saveimage finalPath
				ELSE
				END
I don't think it's working, though. I haven't coded in George before so I'm quite lost as to how function arguments work, how to assign values to variables and such.

If you have any improvements to suggest or if you could just point me to a tutorial, I would greatly appreciate it. Thank you.
User avatar
NathanOtano
Posts: 1225
Joined: 01 Apr 2014, 07:07
Location: Biarritz, France
Contact:

Re: Improvements for Export All Images

Post by NathanOtano »

You can use the export json or the mj export to AE script to save ressources and export only individual instances and their timing
What you want is to export images from in mark only up to out mark? I am not sure about what you need
Working on Windows 10
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
Post Reply