Is external george scripts compiled into a TVPX?

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
KenC
Posts: 174
Joined: 14 Aug 2009, 09:28
Location: Denmark

Is external george scripts compiled into a TVPX?

Post by KenC »

Just wrapping up a couple scripts so I'm wondering if external scripts that's in a button action via "set script" are grabbed into the TVPX file?

What about #includes in my scripts, does TVPX format take care of all that for me and wrap them into the TVPX file?
There's no place like ~/
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: Is external george scripts compiled into a TVPX?

Post by Hervé »

KenC wrote:Just wrapping up a couple scripts so I'm wondering if external scripts that's in a button action via "set script" are grabbed into the TVPX file?

What about #includes in my scripts, does TVPX format take care of all that for me and wrap them into the TVPX file?
grg includes are saved in the .tvpx
Hervé ADAM, TVPaint Team
User avatar
ematecki
Site Admin
Posts: 2259
Joined: 15 Feb 2006, 14:32

Re: Is external george scripts compiled into a TVPX?

Post by ematecki »

KenC wrote:Just wrapping up a couple scripts so I'm wondering if external scripts that's in a button action via "set script" are grabbed into the TVPX file?
The 'modern' way is to use 'embed script' instead of 'set script'.
This will reduce the number of files lying around...
Quicktime is DEAD. Get over it and move on !
User avatar
KenC
Posts: 174
Joined: 14 Aug 2009, 09:28
Location: Denmark

Re: Is external george scripts compiled into a TVPX?

Post by KenC »

Except when tvpaint crashes when I do something stupid and I lose all my work :D It only happened once but oh man did I fly into a rage hehe.

It's neat for small scripts, but when i'm debugging and testing it's much better for me at least to edit in my external editor, that way I can make changes, save and tab back to tvpaint to test.

I guess I could just embed them at the end but having them external also makes it easier for other people to have a look and maybe get thier own ideas based of them.
There's no place like ~/
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Another TVPX question?

Post by Svengali »

On a related note, what is the best way to handle a specially named subfolder which is used by the scripts being included in the TVPX? I am using a unique folder inside the George folder to save and load from, but I'm not sure how to guarantee that it gets created via a TVPX file.

OR does the person who installs the TVPX have to create the unique folder by hand?

Sven
User avatar
ematecki
Site Admin
Posts: 2259
Joined: 15 Feb 2006, 14:32

Re: Another TVPX question?

Post by ematecki »

Svengali wrote:On a related note, what is the best way to handle a specially named subfolder which is used by the scripts being included in the TVPX? I am using a unique folder inside the George folder to save and load from, but I'm not sure how to guarantee that it gets created via a TVPX file.

OR does the person who installs the TVPX have to create the unique folder by hand?

Sven
Yes, if the include files aren't in the same folder as the script itself, the .tvpx handler doesn't really know what to do.
Maybe the user installed another tvpx beforehand with older versions of the includes, or, or, or....

The best way is to have the includes in the same folder as the script if you intend to distribute them as .tvpx.
Even if this means duplicating them...
Quicktime is DEAD. Get over it and move on !
Post Reply