Search found 26 matches

by Gary
21 Nov 2019, 14:07
Forum: George scripting
Topic: Running a Batch or Python Script from TVPaint?
Replies: 6
Views: 2041

Re: Running a Batch or Python Script from TVPaint?

This might not work for your purpose, but I've had better luck doing this the other way around. I have Python scripts that run George scripts instead. That way I can wrap Python code before and after the George script runs. You can run george commands in the Windows commandline by basically calling ...
by Gary
14 May 2019, 16:03
Forum: Feature & Improvement requests
Topic: GEORGE : Layer selection
Replies: 7
Views: 36903

Re: GEORGE : Layer selection

I have! I'm sure there's improvements that could be made (like a better way to iterate over layers) but this does the job for me. Here's the function: FUNCTION get_selected() select_count = 0 FOR id = 1 to 10000 tv_LayerInfo id PARSE result layerDisplay layerPosition layerOpacity layerName layerType...
by Gary
14 May 2019, 10:59
Forum: Feature & Improvement requests
Topic: GEORGE : Layer selection
Replies: 7
Views: 36903

Re: GEORGE : Layer selection

I didn't realise LayerInfo had that info (in fact I didn't realise it could be called on a layer that wasn't the current layer). Thanks for the tip! I suppose you have a point about how it'd be represented. I forget that George commands can only return simple data structures even though you can make...
by Gary
14 May 2019, 10:23
Forum: Feature & Improvement requests
Topic: GEORGE : Layer selection
Replies: 7
Views: 36903

Re: GEORGE : Layer selection

Bumping this request because some tools artists here have requested are entirely impossible without being able to detect multiple selected layers with George.
by Gary
07 Dec 2018, 18:14
Forum: George scripting
Topic: George commands for CTG Layers
Replies: 0
Views: 607

George commands for CTG Layers

Hi there. I'm looking at some tools to help with the ink and paint process to speed up some repetitive tasks. One thing I'm trying to figure out is how to access the names and colour values of the colours associated with a CTG layer. Since CTG layers are relatively new, there's no mention of them in...
by Gary
12 Oct 2016, 14:34
Forum: George scripting
Topic: Select Palettes
Replies: 2
Views: 557

Re: Select Palettes

So far I was just using it with the commandline, so it's happening if I call TVPaint.exe "cmd=tv_LoadPalette C:\Users\gchadwick\Desktop\Palette.pal" When I checked just now, the same happens if I make a small George script with this command in it: tv_LoadPalette "C:\Users\gchadwick\De...
by Gary
12 Oct 2016, 10:35
Forum: George scripting
Topic: Select Palettes
Replies: 2
Views: 557

Select Palettes

Is there a George command that can select a palette that's already been loaded into TVPaint? My intent is to make a George script that can load a file and the correct palette to work on with it. However when using tv_LoadPalette to import a palette file it creates duplicate entries. So if I was to k...
by Gary
17 May 2016, 09:57
Forum: Feature & Improvement requests
Topic: GEORGE : Read/write Sound Track Lock
Replies: 1
Views: 8805

Re: GEORGE : Read/write Sound Track Lock

Was this added to George? I can't find any sign of it in the documentation and it would be very handy for us.
by Gary
09 Nov 2015, 10:18
Forum: George scripting
Topic: tv_LoadSequence often crashing
Replies: 2
Views: 606

Re: tv_LoadSequence often crashing

Sure, I'll send that over now Fabrice.
by Gary
06 Nov 2015, 12:59
Forum: George scripting
Topic: tv_LoadSequence often crashing
Replies: 2
Views: 606

tv_LoadSequence often crashing

I'm currently setting up a script to automatically put together TVPaint files. One of the things it does is import image sequences. However I'm having trouble with the "tv_LoadSequence" command crashing a lot of the time. It seems like one of the reasons might be if the page is too small t...
by Gary
21 Oct 2015, 09:14
Forum: George scripting
Topic: TV_LoadSequence skipping duplicate frames
Replies: 3
Views: 741

Re: TV_LoadSequence skipping duplicate frames

Mads Juul you are my hero, this works perfectly!
by Gary
21 Oct 2015, 08:53
Forum: George scripting
Topic: TV_LoadSequence skipping duplicate frames
Replies: 3
Views: 741

TV_LoadSequence skipping duplicate frames

When I go to New > Import Footage to import an image sequence, TVPaint knows to ignore identical images. ie. If I import ten pictures in a row that look the same it just creates a single image and holds it for 10 frames. As far as I can tell this happens if you have preload enabled, but not otherwis...
by Gary
02 Oct 2015, 15:33
Forum: George scripting
Topic: ...SaveSequence PNG as 32 bit RGBA
Replies: 1
Views: 558

Re: ...SaveSequence PNG as 32 bit RGBA

You'd want to use tv_AlphaSaveMode. You can see it on the docs here.

It's not clear from the docs but nopremultiply does what you need.

Code: Select all

tv_AlphaSaveMode "NoPreMultiply"
by Gary
24 Sep 2015, 13:27
Forum: George scripting
Topic: Finding the UserString in a file
Replies: 8
Views: 1390

Re: Finding the UserString in a file

Yeah I've seen responses somewhere to that effect. You could theoretically point them to critical system files and overwrite those, so they want to make sure that it's always human validated so there's no automated script that accidentally runs amok like that.
by Gary
24 Sep 2015, 09:03
Forum: George scripting
Topic: Finding the UserString in a file
Replies: 8
Views: 1390

Re: Finding the UserString in a file

Aha! I was foolish not to check there thoroughly. I did indeed find the config.ini file in the AppData\Roaming folder for me. Thanks! Just a note that I did find out you only need to answer the file prompt once, but I was trying to set up an automated process where there's no user at all interacting...