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.
Post Reply